diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-08-28 16:30:58 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-08-28 16:32:19 +0200 |
commit | 9e0d975512f12d5b0e474b60a749d8be9f07791d (patch) | |
tree | 0c17ac18ba22de810f00977299ff291af2b8d2ac /source3/libsmb | |
parent | 8bd71350abe48fdcfc0125e48fa97abdf31e1270 (diff) | |
download | samba-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.c | 5 |
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); } |