lib/async_req: simplify async_connect_* using a _cleanup() hook
authorStefan Metzmacher <metze@samba.org>
Thu, 21 May 2015 20:28:14 +0000 (22:28 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Jun 2015 15:08:18 +0000 (17:08 +0200)
commitd5a4b30f894f0d4d4fa728ebd2c435254bf3b142
treeeec447f3806c280fbb807c65a7a2f19cba814afe
parentbe8c2ff10353df00f05cd378c251a33a9e08563a
lib/async_req: simplify async_connect_* using a _cleanup() hook

This makes sure we remove the tevent_fd as soon as possible
and always reset the old_sockflags.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/async_req/async_sock.c