diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-14 10:35:23 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-03-14 20:09:09 +0100 |
commit | e818090e245776ca1bcd362a47864eee35ed55ba (patch) | |
tree | 5afdaec10e64a5d5f4ec94d73488b8eef9039e6e /source3 | |
parent | 746b299ec1b11ea1e70c130b69a9a379ec478750 (diff) | |
download | samba-e818090e245776ca1bcd362a47864eee35ed55ba.tar.gz samba-e818090e245776ca1bcd362a47864eee35ed55ba.tar.bz2 samba-e818090e245776ca1bcd362a47864eee35ed55ba.zip |
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 <jra@samba.org>
Autobuild-Date: Mon Mar 14 20:09:09 CET 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clirap2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |