diff options
author | Martin Schwenke <martin@meltin.net> | 2019-10-29 15:25:26 +1100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-11-20 11:15:25 +0000 |
commit | 20b823fc255e640a6bbf4debcc69c738b53c5229 (patch) | |
tree | 5737007dd8ea88df95fdf72f67bb19787e50f149 | |
parent | 2d1f566ef95b678987b180c71512fc1793706425 (diff) | |
download | samba-20b823fc255e640a6bbf4debcc69c738b53c5229.tar.gz |
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)
-rw-r--r-- | ctdb/tcp/tcp_connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c index f02340c1789..66e10e841a1 100644 --- a/ctdb/tcp/tcp_connect.c +++ b/ctdb/tcp/tcp_connect.c @@ -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); } } |