diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-23 23:31:09 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-23 23:31:09 +0000 |
commit | 3e4c6d130c3c533831ac6a52e2403132b79f4b28 (patch) | |
tree | ba71663afad9645f7d0392190621c28dd96662c0 /source3/rpc_parse | |
parent | 30daf2e939b6dbc50e9389f26f3b1f4a4d6d5c2e (diff) | |
download | samba-3e4c6d130c3c533831ac6a52e2403132b79f4b28.tar.gz samba-3e4c6d130c3c533831ac6a52e2403132b79f4b28.tar.bz2 samba-3e4c6d130c3c533831ac6a52e2403132b79f4b28.zip |
Fix "proc num out of range" error. Missing rpc call.
Jeremy.
(This used to be commit 6248fb22926d72fddaecad5af117af1bdd08fda3)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_net.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c index fbbc09182e..50cad248e0 100644 --- a/source3/rpc_parse/parse_net.c +++ b/source3/rpc_parse/parse_net.c @@ -486,6 +486,62 @@ BOOL net_io_r_req_chal(char *desc, NET_R_REQ_CHAL *r_c, prs_struct *ps, int dept /******************************************************************* + Reads or writes a structure. +********************************************************************/ + +BOOL net_io_q_auth(char *desc, NET_Q_AUTH *q_a, prs_struct *ps, int depth) +{ + int old_align; + if (q_a == NULL) + return False; + + prs_debug(ps, depth, desc, "net_io_q_auth"); + depth++; + + if(!prs_align(ps)) + return False; + + if(!smb_io_log_info ("", &q_a->clnt_id, ps, depth)) /* client identification info */ + return False; + /* client challenge is _not_ aligned */ + old_align = ps->align; + ps->align = 0; + if(!smb_io_chal("", &q_a->clnt_chal, ps, depth)) { + /* client-calculated credentials */ + ps->align = old_align; + return False; + } + ps->align = old_align; + + return True; +} + +/******************************************************************* + Reads or writes a structure. +********************************************************************/ + +BOOL net_io_r_auth(char *desc, NET_R_AUTH *r_a, prs_struct *ps, int depth) +{ + if (r_a == NULL) + return False; + + prs_debug(ps, depth, desc, "net_io_r_auth"); + depth++; + + if(!prs_align(ps)) + return False; + + if(!smb_io_chal("", &r_a->srv_chal, ps, depth)) /* server challenge */ + return False; + + if(!prs_uint32("status", ps, depth, &r_a->status)) + return False; + + return True; +} + +/******************************************************************* +/******************************************************************* Inits a NET_Q_AUTH_2 struct. ********************************************************************/ |