From 8dad2a1310c6dc908934ac836377cbfed8f7a010 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 3 Aug 2001 03:43:24 +0000 Subject: Fix for smbpasswd set_userinfo24 was in the wrong place! (This used to be commit c9cbe3237e01983a5063e5680ad71c7579009f28) --- source3/rpc_parse/parse_samr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/rpc_parse') 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)) -- cgit