The branch, v3-5-test has been updated
via dd2e6fd s3: Fix bug 8009 - net rap session cannot get username
from 5d734a3 s3: Fix the talloc hierarchy in shadow_copy2_connectpath
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test
- Log -----------------------------------------------------------------
commit dd2e6fde0ab2e929b108c22244aac746e036a22c
Author: Volker Lendecke <[email protected]>
Date: Mon Mar 14 10:35:23 2011 -0700
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.
-----------------------------------------------------------------------
Summary of changes:
source3/libsmb/clirap2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/libsmb/clirap2.c b/source3/libsmb/clirap2.c
index 4fd9dc6..011c4c2 100644
--- a/source3/libsmb/clirap2.c
+++ b/source3/libsmb/clirap2.c
@@ -210,7 +210,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)
--
Samba Shared Repository