]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tcp: Check incoming queue to see if incoming connection is up
authorMartin Schwenke <martin@meltin.net>
Tue, 29 Oct 2019 04:25:26 +0000 (15:25 +1100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 Nov 2019 11:15:25 +0000 (11:15 +0000)
This makes it consistent with the reverse case.  Also, in_fd will soon
be removed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14175

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit e62b3a05a874db13a848573d2e2fb1c157393b9c)

ctdb/tcp/tcp_connect.c

index f02340c178955a67231e9eed990830afd29b08dc..66e10e841a192778c0ed7e81d148fb551e8383fd 100644 (file)
@@ -153,7 +153,7 @@ static void ctdb_node_connect_write(struct tevent_context *ev,
         * as connected, but only if the corresponding listening
         * socket is also connected
         */
-       if (tnode->in_fd != -1) {
+       if (tnode->in_queue != NULL) {
                node->ctdb->upcalls->node_connected(node);
        }
 }