1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

when a client connects with TCP_CLIENT we should look at the

destination address to find the public address   not the source address

(This used to be ctdb commit d6d4a7f38a52c1c2579a54d14cb7a6981fb42f5b)
This commit is contained in:
Ronnie Sahlberg 2007-07-20 17:04:08 +10:00
parent fca90ce3c3
commit 81767b2a7b

View File

@ -648,7 +648,7 @@ int32_t ctdb_control_tcp_client(struct ctdb_context *ctdb, uint32_t client_id,
tcp = talloc(client, struct ctdb_tcp_list);
CTDB_NO_MEMORY(ctdb, tcp);
addr = inet_ntoa(p->src.sin_addr);
addr = inet_ntoa(p->dest.sin_addr);
takeover_vnn = find_public_ip_vnn(ctdb, addr);
if (takeover_vnn == -1) {