summaryrefslogtreecommitdiff
path: root/libcli/smb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-22 21:24:42 +0200
committerStefan Metzmacher <metze@samba.org>2011-11-24 19:02:30 +0100
commit2a570e6305715dd4d64947ce5d702e227916f33b (patch)
tree3670cd6c07b52e0673a24443e87575dceb85cc4e /libcli/smb
parent349977e1a071137ca33b831660e8c65c2e580b5f (diff)
downloadsamba-2a570e6305715dd4d64947ce5d702e227916f33b.tar.gz
samba-2a570e6305715dd4d64947ce5d702e227916f33b.tar.bz2
samba-2a570e6305715dd4d64947ce5d702e227916f33b.zip
smbXcli: set message id to UINT64_MAX for BREAK in smb2cli_req_create()
This way the caller can register an oplock handler. Note that smb2cli_req_compound_submit() will overwrite this if a request is send over the wire. metze
Diffstat (limited to 'libcli/smb')
-rw-r--r--libcli/smb/smbXcli_base.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index ebbbf72880..ed5f5a5776 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -1665,6 +1665,15 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
case SMB2_OP_CANCEL:
state->one_way = true;
break;
+ case SMB2_OP_BREAK:
+ /*
+ * If this is a dummy request, it will have
+ * UINT64_MAX as message id.
+ * If we send on break acknowledgement,
+ * this gets overwritten later.
+ */
+ SBVAL(state->smb2.hdr, SMB2_HDR_MESSAGE_ID, UINT64_MAX);
+ break;
}
if (timeout_msec > 0) {