diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-19 14:26:20 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-20 11:34:23 +0200 |
commit | 81f71e76fd89a36cfa52032fde471220a9fb8218 (patch) | |
tree | a6f78b08ec268a56e5189e469e7c75f06023ef50 /source3 | |
parent | 13a3aa13126d537c96f10c22852a813c47f6400e (diff) | |
download | samba-81f71e76fd89a36cfa52032fde471220a9fb8218.tar.gz samba-81f71e76fd89a36cfa52032fde471220a9fb8218.tar.bz2 samba-81f71e76fd89a36cfa52032fde471220a9fb8218.zip |
s3:libsmb/async_smb: in cli_state_notify_pending() we always disconnect
So we should always set state->mid = 0.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Oct 20 11:34:23 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/async_smb.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index dce1b74f88..43dfa22b9d 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -287,13 +287,11 @@ static void cli_state_notify_pending(struct cli_state *cli, NTSTATUS status) req = cli->conn.pending[0]; state = tevent_req_data(req, struct cli_smb_state); - if (NT_STATUS_EQUAL(status, NT_STATUS_PIPE_BROKEN)) { - /* - * We're dead. No point waiting for trans2 - * replies. - */ - state->mid = 0; - } + /* + * We're dead. No point waiting for trans2 + * replies. + */ + state->mid = 0; cli_smb_req_unset_pending(req); |