diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-09-11 07:55:51 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2006-09-11 07:55:51 +0000 |
commit | f2c88c8cb9b74790a9889b61427a24e090ea5610 (patch) | |
tree | 84318308076ce5c0365123f066ab527fc8ecd64e /source/rpc_parse | |
parent | 7d07d399a9d974764b8c744591c28a8ff30e3ed2 (diff) | |
download | samba-f2c88c8cb9b74790a9889b61427a24e090ea5610.tar.gz samba-f2c88c8cb9b74790a9889b61427a24e090ea5610.tar.xz samba-f2c88c8cb9b74790a9889b61427a24e090ea5610.zip |
r18369: I've got a sniff where NT4 sends just a single byte after the 516 byte
password blob, it seems that pw_len is just a uint8 instead of uint16.
This might also be interesting for Samba4's samr.idl.
Volker
Diffstat (limited to 'source/rpc_parse')
-rw-r--r-- | source/rpc_parse/parse_samr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/rpc_parse/parse_samr.c b/source/rpc_parse/parse_samr.c index eda3c428a9a..58ba3e86899 100644 --- a/source/rpc_parse/parse_samr.c +++ b/source/rpc_parse/parse_samr.c @@ -5578,7 +5578,8 @@ static BOOL sam_io_user_info17(const char *desc, SAM_USER_INFO_17 * usr, init_sam_user_infoa *************************************************************************/ -void init_sam_user_info24(SAM_USER_INFO_24 * usr, char newpass[516], uint16 pw_len) +void init_sam_user_info24(SAM_USER_INFO_24 * usr, char newpass[516], + uint8 pw_len) { DEBUG(10, ("init_sam_user_info24:\n")); memcpy(usr->pass, newpass, sizeof(usr->pass)); @@ -5606,10 +5607,10 @@ static BOOL sam_io_user_info24(const char *desc, SAM_USER_INFO_24 * usr, return False; if (MARSHALLING(ps) && (usr->pw_len != 0)) { - if (!prs_uint16("pw_len", ps, depth, &usr->pw_len)) + if (!prs_uint8("pw_len", ps, depth, &usr->pw_len)) return False; } else if (UNMARSHALLING(ps)) { - if (!prs_uint16("pw_len", ps, depth, &usr->pw_len)) + if (!prs_uint8("pw_len", ps, depth, &usr->pw_len)) return False; } |