diff options
author | Volker Lendecke <vl@samba.org> | 2010-02-21 20:39:36 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-02-21 20:42:39 +0100 |
commit | 65914ed8194b141a44516d626e71a1851bccff5f (patch) | |
tree | 6f294ba41e86d29ee9cd44958d62b732e4d877dc | |
parent | 0679c774697563bc0b1f57462018051b75d0e581 (diff) | |
download | samba-65914ed8194b141a44516d626e71a1851bccff5f.tar.gz samba-65914ed8194b141a44516d626e71a1851bccff5f.tar.bz2 samba-65914ed8194b141a44516d626e71a1851bccff5f.zip |
s3: Avoid calling cli_alloc_mid twice in cli_smb_req_iov_send
I hate macros....
-rw-r--r-- | source3/libsmb/async_smb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 0667fa3ab2..59226e1ecb 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -476,7 +476,8 @@ static NTSTATUS cli_smb_req_iov_send(struct tevent_req *req, if (state->mid != 0) { SSVAL(iov[0].iov_base, smb_mid, state->mid); } else { - SSVAL(iov[0].iov_base, smb_mid, cli_alloc_mid(state->cli)); + uint16_t mid = cli_alloc_mid(state->cli); + SSVAL(iov[0].iov_base, smb_mid, mid); } smb_setlen((char *)iov[0].iov_base, iov_len(iov, iov_count) - 4); |