async_req: make async_connect_send() "reentrant"
authorRalph Boehme <slow@samba.org>
Wed, 3 Aug 2016 13:00:45 +0000 (15:00 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 5 Aug 2016 08:01:23 +0000 (10:01 +0200)
commit49d09f6e884386eb344d0c85b2f4d2b649ee94df
treecf005638d168776ce6406f70523353d015742519
parentd6639d7f7ef787ca6cf06e8aab9bcb0d580bc9ab
async_req: make async_connect_send() "reentrant"

Allow callers to pass in socket fds that where already passed to an
earlier call of async_connect_send(). Callers expect this behaviour and
it was working until 05d4dbda8357712cb81008e0d611fdb0e7239587 broke it.

The proper fix would be to change callers to close the fd and start from
scratch with a fresh socket.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12105

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Aug  4 05:03:21 CEST 2016 on sn-devel-144

(cherry picked from commit 9c6a4ea2788808bdcc7bfea798d838ea56c3b5ec)
lib/async_req/async_sock.c