s3:libsmb/async_smb: in cli_state_notify_pending() we always disconnect
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 12:26:20 +0000 (14:26 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 20 Oct 2011 09:34:23 +0000 (11:34 +0200)
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

source3/libsmb/async_smb.c

index dce1b74f888b9cabb8257eebdf28f8e8a4751897..43dfa22b9dfa8fe37f9b352fec737eeb4eb26b36 100644 (file)
@@ -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);