diff options
author | Volker Lendecke <vl@samba.org> | 2010-01-21 14:05:04 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-01-21 14:08:27 +0100 |
commit | 9b4b9d26f18a50028cbc9f593b44882b4dced809 (patch) | |
tree | 5204b196cfc421728ea8657ad274aaa2549e24ca /source3/smbd | |
parent | 33e397f9fde1346d4f6488128efcd6ecba06143c (diff) | |
download | samba-9b4b9d26f18a50028cbc9f593b44882b4dced809.tar.gz samba-9b4b9d26f18a50028cbc9f593b44882b4dced809.tar.bz2 samba-9b4b9d26f18a50028cbc9f593b44882b4dced809.zip |
s3: Initialize the seqnum in "init_smb_request"
This makes it a bit more obvious for me that the signing sequence number is
tied to the SMB request.
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 44d53b23b6..6783308edd 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -367,7 +367,8 @@ static NTSTATUS receive_smb_talloc(TALLOC_CTX *mem_ctx, int fd, */ static void init_smb_request(struct smb_request *req, const uint8 *inbuf, - size_t unread_bytes, bool encrypted) + size_t unread_bytes, bool encrypted, + uint32_t seqnum) { struct smbd_server_connection *sconn = smbd_server_conn; size_t req_size = smb_len(inbuf) + 4; @@ -381,7 +382,7 @@ static void init_smb_request(struct smb_request *req, const uint8 *inbuf, req->flags2 = SVAL(inbuf, smb_flg2); req->smbpid = SVAL(inbuf, smb_pid); req->mid = SVAL(inbuf, smb_mid); - req->seqnum = 0; + req->seqnum = seqnum; req->vuid = SVAL(inbuf, smb_uid); req->tid = SVAL(inbuf, smb_tid); req->wct = CVAL(inbuf, smb_wct); @@ -1414,9 +1415,8 @@ static void construct_reply(char *inbuf, int size, size_t unread_bytes, smb_panic("could not allocate smb_request"); } - init_smb_request(req, (uint8 *)inbuf, unread_bytes, encrypted); + init_smb_request(req, (uint8 *)inbuf, unread_bytes, encrypted, seqnum); req->inbuf = (uint8_t *)talloc_move(req, &inbuf); - req->seqnum = seqnum; /* we popped this message off the queue - keep original perf data */ if (deferred_pcd) |