mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
ctdb-server: Use ctdb_connection_same() to simplify
Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jerry Heyman <jheyman@ddn.com>
This commit is contained in:
parent
1b1fd5c228
commit
d39a1cc1d4
@ -1497,8 +1497,7 @@ static struct ctdb_connection *ctdb_tcp_find(struct ctdb_tcp_array *array,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i=0;i<array->num;i++) {
|
for (i=0;i<array->num;i++) {
|
||||||
if (ctdb_same_sockaddr(&array->connections[i].src, &tcp->src) &&
|
if (ctdb_connection_same(&array->connections[i], tcp)) {
|
||||||
ctdb_same_sockaddr(&array->connections[i].dst, &tcp->dst)) {
|
|
||||||
return &array->connections[i];
|
return &array->connections[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user