s3:lib: fix some corner cases of open_socket_out_cleanup()
commitce3c77fb45ccf4d45a0fa655325e30e748d89245
authorStefan Metzmacher <metze@samba.org>
Fri, 14 Aug 2015 10:54:00 +0000 (14 12:54 +0200)
committerRalph Böhme <slow@samba.org>
Mon, 17 Aug 2015 15:43:36 +0000 (17 17:43 +0200)
treeaf50b512c8f0178fe85dc5417fade6e47011b71d
parentc93e2cdd1ef9f9e32e018c81b58f891cc95c0398
s3:lib: fix some corner cases of open_socket_out_cleanup()

In case of timeouts we retry the async_connect_send() and forgot
to remember it, this results in an abort() in async_connect_cleanup()
as the fd is already closed when calling fcntl(F_SETFL).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11316

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/lib/util_sock.c