1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

ctdb-tcp: Check incoming queue to see if incoming connection is up

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)
This commit is contained in:
Martin Schwenke 2019-10-29 15:25:26 +11:00 committed by Karolin Seeger
parent 2d1f566ef9
commit 20b823fc25

View File

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