diff options
author | Luke Leighton <lkcl@samba.org> | 1997-10-23 16:17:07 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1997-10-23 16:17:07 +0000 |
commit | 0cc8ce43e1d54b44237bb525f4cf6b77e7ca3ced (patch) | |
tree | 0ed9bcf98372cdb7b5202d21e540fedbb263b3bb /source/pipeutil.c | |
parent | c100b39be9bd28498d6fda55eb2ed90af85cd3f6 (diff) | |
download | samba-0cc8ce43e1d54b44237bb525f4cf6b77e7ca3ced.tar.gz |
general sorting out, from crashes generated by do_lsa_req_chal() in client.c
trying to set up the data parameters etc and not understanding what's going on.
in api_netlogTNP, added smb_io_rpc_hdr() call to decode the header received
(and in this instance, generated by do_lsa_req_chal()). and then noticed
that it's two bytes out. but i don't know how to do "byte parameters"
and it's not the same format as the LSA_REQCHAL received from nt workstations.
agh!
Diffstat (limited to 'source/pipeutil.c')
-rw-r--r-- | source/pipeutil.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/pipeutil.c b/source/pipeutil.c index 135eb19190c..dff03744330 100644 --- a/source/pipeutil.c +++ b/source/pipeutil.c @@ -217,12 +217,11 @@ int make_dom_gids(char *gids_str, DOM_GID *gids) return count; } -int create_rpc_request(uint32 call_id, uint16 op_num, char *q, int data_len) +int create_rpc_request(uint32 call_id, uint8 op_num, char *q, int data_len) { RPC_HDR hdr; - /* XXXX cheat - use cancel count to store opnum */ - make_rpc_header(&hdr, RPC_RESPONSE, call_id, data_len, op_num); + make_rpc_header(&hdr, RPC_REQUEST, call_id, data_len, op_num); return smb_io_rpc_hdr(False, &hdr, q, q, 4, 0) - q; } @@ -230,7 +229,6 @@ int create_rpc_reply(uint32 call_id, char *q, int data_len) { RPC_HDR hdr; - /* XXXX cheat - use cancel count to store opnum */ make_rpc_header(&hdr, RPC_RESPONSE, call_id, data_len, 0); return smb_io_rpc_hdr(False, &hdr, q, q, 4, 0) - q; } |