summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-28 16:30:58 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-28 16:32:19 +0200
commit9e0d975512f12d5b0e474b60a749d8be9f07791d (patch)
tree0c17ac18ba22de810f00977299ff291af2b8d2ac /source3/libsmb
parent8bd71350abe48fdcfc0125e48fa97abdf31e1270 (diff)
downloadsamba-9e0d975512f12d5b0e474b60a749d8be9f07791d.tar.gz
samba-9e0d975512f12d5b0e474b60a749d8be9f07791d.tar.bz2
samba-9e0d975512f12d5b0e474b60a749d8be9f07791d.zip
s3:libsmb: let cli_smb_req_mid() return the mid set by cli_smb_req_set_mid()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 5f2a6441e3..c5cbc1eee2 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -301,6 +301,11 @@ uint16_t cli_smb_req_mid(struct tevent_req *req)
{
struct cli_smb_state *state = tevent_req_data(
req, struct cli_smb_state);
+
+ if (state->mid != 0) {
+ return state->mid;
+ }
+
return SVAL(state->header, smb_mid);
}