diff options
author | Tim Potter <tpot@samba.org> | 2001-09-14 04:35:48 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-09-14 04:35:48 +0000 |
commit | 0f041597f8afa378fc3177264f1e52e014e6cf00 (patch) | |
tree | 68f4ba9f6a50ebf67caa4a9aa765ce2d867c2881 | |
parent | b6cb6b837ac06d8b9cb898668e69236b64a8b698 (diff) | |
download | samba-0f041597f8afa378fc3177264f1e52e014e6cf00.tar.gz samba-0f041597f8afa378fc3177264f1e52e014e6cf00.tar.xz samba-0f041597f8afa378fc3177264f1e52e014e6cf00.zip |
Decode 68-byte password blocks using sam replication password key (which
is actually the user session key).
-rw-r--r-- | source/rpc_parse/parse_net.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/rpc_parse/parse_net.c b/source/rpc_parse/parse_net.c index e1a451b7ceb..f7dbfb2a574 100644 --- a/source/rpc_parse/parse_net.c +++ b/source/rpc_parse/parse_net.c @@ -2061,7 +2061,8 @@ static BOOL net_io_sam_account_info(char *desc, uint8 sess_key[16], if (ps->io) { /* reading */ -/* // FIXME prs_hash1(ps, ps->offset, sess_key); */ + if (!prs_hash1(ps, ps->data_offset, sess_key)) + return False; } if (!net_io_sam_passwd_info("pass", &info->pass, ps, depth)) @@ -2070,7 +2071,8 @@ static BOOL net_io_sam_account_info(char *desc, uint8 sess_key[16], if (!ps->io) { /* writing */ -/* // FIXME TOO prs_hash1(ps, old_offset, sess_key); */ + if (!prs_hash1(ps, old_offset, sess_key)) + return False; } } if (old_offset + len > ps->buffer_size) |