The branch, master has been updated via e818090 s3: Fix bug 8009 - net rap session cannot get username from 746b299 s3: Fix the talloc hierarchy in shadow_copy2_connectpath
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit e818090e245776ca1bcd362a47864eee35ed55ba Author: Volker Lendecke <v...@samba.org> 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. Autobuild-User: Jeremy Allison <j...@samba.org> Autobuild-Date: Mon Mar 14 20:09:09 CET 2011 on sn-devel-104 ----------------------------------------------------------------------- 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 a088397..20efca3 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) -- Samba Shared Repository