From e818090e245776ca1bcd362a47864eee35ed55ba Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 14 Mar 2011 10:35:23 -0700 Subject: s3: Fix bug 8009 - net rap session cannot get username Looking in [MS-RAP].pdf - these strings are always 4 bytes as an offset in the rparam area, the string length is the size in the rdata area. Se we must always return we have consumed 4 param bytes. Autobuild-User: Jeremy Allison Autobuild-Date: Mon Mar 14 20:09:09 CET 2011 on sn-devel-104 --- source3/libsmb/clirap2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libsmb/clirap2.c b/source3/libsmb/clirap2.c index a08839726d..20efca3dc3 100644 --- a/source3/libsmb/clirap2.c +++ b/source3/libsmb/clirap2.c @@ -212,7 +212,7 @@ static size_t rap_getstringp(TALLOC_CTX *ctx, char *p, char **dest, char *r, uin } } pull_string_talloc(ctx,src,0,dest,src,len,STR_ASCII); - return len; + return 4; } static char *make_header(char *param, uint16 apinum, const char *reqfmt, const char *datafmt) -- cgit