diff options
author | Tim Potter <tpot@samba.org> | 2001-08-03 03:43:24 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-08-03 03:43:24 +0000 |
commit | 8dad2a1310c6dc908934ac836377cbfed8f7a010 (patch) | |
tree | eecb9294a09c00b3cf6b7a381f9469f96c57ca08 /source3/rpc_parse | |
parent | 65bf96ed06845ea0ba78600d86751def7c3b4068 (diff) | |
download | samba-8dad2a1310c6dc908934ac836377cbfed8f7a010.tar.gz samba-8dad2a1310c6dc908934ac836377cbfed8f7a010.tar.bz2 samba-8dad2a1310c6dc908934ac836377cbfed8f7a010.zip |
Fix for smbpasswd set_userinfo24 was in the wrong place!
(This used to be commit c9cbe3237e01983a5063e5680ad71c7579009f28)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_samr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index c3417eee6c..6964c58a97 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -5214,6 +5214,10 @@ static BOOL sam_io_user_info24(char *desc, SAM_USER_INFO_24 * usr, sizeof(usr->pass))) return False; + if (MARSHALLING(ps) && (usr->pw_len != 0)) { + if (!prs_uint16("pw_len", ps, depth, &usr->pw_len)) + return False; + } if(!prs_align(ps)) return False; @@ -6475,10 +6479,6 @@ BOOL samr_io_q_connect(char *desc, SAMR_Q_CONNECT * q_u, if(!smb_io_unistr2("", &q_u->uni_srv_name, q_u->ptr_srv_name, ps, depth)) return False; - if (MARSHALLING(ps) && (usr->pw_len != 0)) { - if (!prs_uint16("pw_len", ps, depth, &usr->pw_len)) - return False; - } if(!prs_align(ps)) return False; if(!prs_uint32("access_mask", ps, depth, &q_u->access_mask)) |