smbXcli: call tevent_queue_stop() for the outgoing queue on disconnect
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Nov 2011 09:23:23 +0000 (10:23 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Nov 2011 15:00:07 +0000 (16:00 +0100)
metze

libcli/smb/smbXcli_base.c

index e479549343c6a82b6b0d3937506d81604f443fef..43fbbf4e4d20e78612c4bb3e9fe957d2d6205de2 100644 (file)
@@ -743,6 +743,8 @@ static bool smbXcli_conn_receive_next(struct smbXcli_conn *conn)
 
 void smbXcli_conn_disconnect(struct smbXcli_conn *conn, NTSTATUS status)
 {
+       tevent_queue_stop(conn->outgoing);
+
        if (conn->read_fd != -1) {
                close(conn->read_fd);
        }