summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-28 07:50:42 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-28 17:29:11 +0200
commitcaef1c7d2132fb9f669dd1e77c06172408386fc3 (patch)
treea6b9120958b303eb5ba590d0acae3fe033981f52 /source4/libcli/smb2
parent28b48f84984684af91c3a1e55d2054e57db0084c (diff)
downloadsamba-caef1c7d2132fb9f669dd1e77c06172408386fc3.tar.gz
samba-caef1c7d2132fb9f669dd1e77c06172408386fc3.tar.bz2
samba-caef1c7d2132fb9f669dd1e77c06172408386fc3.zip
s4:libcli/smb2: correctly sign SMB2_OP_CANCEL request if they belong to a session
metze
Diffstat (limited to 'source4/libcli/smb2')
-rw-r--r--source4/libcli/smb2/cancel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/libcli/smb2/cancel.c b/source4/libcli/smb2/cancel.c
index 28ef3099f3..9fcb8cffb5 100644
--- a/source4/libcli/smb2/cancel.c
+++ b/source4/libcli/smb2/cancel.c
@@ -57,6 +57,7 @@ NTSTATUS smb2_cancel(struct smb2_request *r)
SBVAL(c->out.hdr, SMB2_HDR_MESSAGE_ID, c->seqnum);
if (r->session) {
SBVAL(c->out.hdr, SMB2_HDR_SESSION_ID, r->session->uid);
+ c->session = r->session;
}
SSVAL(c->out.body, 0x02, 0);