summaryrefslogtreecommitdiffstats
path: root/source3/rpc_parse/parse_samr.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-19 19:56:06 +0000
committerJeremy Allison <jra@samba.org>2001-06-19 19:56:06 +0000
commit92033860636abf665ddd968d991bd789aabeec9a (patch)
tree18880cea4a0efde584a4036bac7c7e0e1e881bba /source3/rpc_parse/parse_samr.c
parentd2846a3ea93984ab091b6a70bf127e9f7eab1c58 (diff)
downloadsamba-92033860636abf665ddd968d991bd789aabeec9a.tar.gz
samba-92033860636abf665ddd968d991bd789aabeec9a.tar.xz
samba-92033860636abf665ddd968d991bd789aabeec9a.zip
INFO_24 sometimes has a 2 byte length, sometimes doesn't. Safer to not
depend on it... Jeremy. (This used to be commit 0fe11c329f7b379299be65795031e4f1b14e0bec)
Diffstat (limited to 'source3/rpc_parse/parse_samr.c')
-rw-r--r--source3/rpc_parse/parse_samr.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c
index e32a087a654..6e94b62d40e 100644
--- a/source3/rpc_parse/parse_samr.c
+++ b/source3/rpc_parse/parse_samr.c
@@ -4997,12 +4997,10 @@ static BOOL sam_io_user_info11(char *desc, SAM_USER_INFO_11 * usr,
*************************************************************************/
-void init_sam_user_info24(SAM_USER_INFO_24 * usr,
- char newpass[516], uint16 passlen)
+void init_sam_user_info24(SAM_USER_INFO_24 * usr, char newpass[516])
{
- DEBUG(10, ("init_sam_user_info24: passlen: %d\n", passlen));
+ DEBUG(10, ("init_sam_user_info24:\n"));
memcpy(usr->pass, newpass, sizeof(usr->pass));
- usr->passlen = passlen;
}
/*******************************************************************
@@ -5025,9 +5023,6 @@ static BOOL sam_io_user_info24(char *desc, SAM_USER_INFO_24 * usr,
sizeof(usr->pass)))
return False;
- if (!prs_uint16("passlen", ps, depth, &usr->passlen))
- return False;
-
if(!prs_align(ps))
return False;