mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
after we have checked dest address that it is a public address
update addr to the source address so the rpintout in the log matches the client that attached to samba (This used to be ctdb commit 72098b71c79469c86769ca82bbd484c81902d27c)
This commit is contained in:
parent
64f61364a7
commit
dd14afe6aa
@ -643,10 +643,12 @@ int32_t ctdb_control_tcp_client(struct ctdb_context *ctdb, uint32_t client_id,
|
||||
|
||||
takeover_vnn = find_public_ip_vnn(ctdb, addr);
|
||||
if (takeover_vnn == -1) {
|
||||
DEBUG(3,("Could not add client IP %s. It is not a public address.\n", addr));
|
||||
DEBUG(3,("Could not add client IP %s. This is not a public address.\n", addr));
|
||||
return -1;
|
||||
}
|
||||
|
||||
addr = inet_ntoa(p->src.sin_addr);
|
||||
|
||||
tcp->connection.saddr = p->src;
|
||||
tcp->connection.daddr = p->dest;
|
||||
|
||||
@ -718,7 +720,6 @@ int32_t ctdb_control_tcp_add(struct ctdb_context *ctdb, TDB_DATA indata)
|
||||
struct ctdb_tcp_array *tcparray;
|
||||
struct ctdb_tcp_connection tcp;
|
||||
|
||||
|
||||
tcparray = ctdb->nodes[p->vnn]->tcp_array;
|
||||
|
||||
/* If this is the first tickle */
|
||||
|
Loading…
x
Reference in New Issue
Block a user