ctdb-server: fix a possible fd leak in ctdb_tcp_listen_automatic()
authorMichael Adam <obnox@samba.org>
Tue, 8 Sep 2015 08:01:31 +0000 (10:01 +0200)
committerMartin Schwenke <martins@samba.org>
Wed, 9 Sep 2015 08:12:21 +0000 (10:12 +0200)
commit7d49d9b4a135f97e6d94ffe14979259ecd3f0cae
tree81034d8d444cc3b01a6d11f429f817c9c795db08
parent4010c03e3dcea7d79ca6371f5c57d56b42043822
ctdb-server: fix a possible fd leak in ctdb_tcp_listen_automatic()

sockets are created in a loop until an unused address is found.
But the unused socket fds were not closed.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tcp/tcp_connect.c