summaryrefslogtreecommitdiff
path: root/source3/smbparse.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-24 13:15:34 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-24 13:15:34 +0000
commita12f04753348e6d52df1f9a2359794deacfc9007 (patch)
tree1b4afcd5c0819d7486504510b6681644101c7ebe /source3/smbparse.c
parentabb255cfe674a39c6a42f5083af9c5facdbcca05 (diff)
downloadsamba-a12f04753348e6d52df1f9a2359794deacfc9007.tar.gz
samba-a12f04753348e6d52df1f9a2359794deacfc9007.tar.bz2
samba-a12f04753348e6d52df1f9a2359794deacfc9007.zip
nterr.c :
added a structure that wraps nt errors as strings and enums, so we can do a smb_nt_error() function. Makefile ntclient.c : added ntclient.c, broken out nt domain stuff into a separate file. getting fed up of compile-times and size of client.c. fixed the do_lsa_req_chal() function. made it read the response, and return the challenge credentials received from the server. next stop: do_lsa_auth_2(). client.c : removed nt domain logon functions into a separate file. pipenetlog.c pipentlsa.c pipesrvsvc.c smbparse.c : i'd broken the offsets of the RPC_HDR while trying to sort out the nt client code. fixed it again. added some robustness stuff. util.c : the unistrn2() function was null-terminating the string at one character too many. (This used to be commit 39cec7f698c4461aee05cfbb213879fbd486117d)
Diffstat (limited to 'source3/smbparse.c')
-rw-r--r--source3/smbparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbparse.c b/source3/smbparse.c
index 7c42ae52b0..1cafef8096 100644
--- a/source3/smbparse.c
+++ b/source3/smbparse.c
@@ -626,8 +626,8 @@ void make_rpc_header(RPC_HDR *hdr, enum RPC_PKT_TYPE pkt_type,
hdr->call_id = call_id; /* call identifier - match incoming RPC */
hdr->alloc_hint = data_len - 0x18; /* allocation hint (no idea) */
hdr->context_id = 0; /* presentation context identifier */
- hdr->cancel_count = 0; /* cancel count. */
- hdr->reserved = opnum; /* response: reserved. request: opnum */
+ hdr->cancel_count = opnum; /* reply: cancel count. request: opnum */
+ hdr->reserved = 0; /* reserved */
}
/*******************************************************************