From 2a570e6305715dd4d64947ce5d702e227916f33b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 22 Sep 2011 21:24:42 +0200 Subject: 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 --- libcli/smb/smbXcli_base.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libcli') 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) { -- cgit