From 5155a15c5cadd2dec9386576c1b4b566be1e4536 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 3 Sep 2011 15:23:44 +0200 Subject: s3:smb2cli: don't use state->cli->smb2.mid++ as macro argument It gets expanded multiple times. metze --- source3/libsmb/smb2cli_base.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c index 9fc824c6b2..a25183e19b 100644 --- a/source3/libsmb/smb2cli_base.c +++ b/source3/libsmb/smb2cli_base.c @@ -252,10 +252,14 @@ NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs, for (i=0; ihdr, SMB2_HDR_MESSAGE_ID, state->cli->smb2.mid++); + mid = state->cli->smb2.mid; + state->cli->smb2.mid += 1; + + SBVAL(state->hdr, SMB2_HDR_MESSAGE_ID, mid); iov[num_iov].iov_base = state->hdr; iov[num_iov].iov_len = sizeof(state->hdr); -- cgit