s3:lib/tldap: make use of tevent_req_defer_callback()
authorStefan Metzmacher <metze@samba.org>
Wed, 8 Jan 2014 18:46:01 +0000 (19:46 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 17 Jan 2014 11:38:09 +0000 (12:38 +0100)
commit5fd9eab20fc48f84c2ab389f91ae11d65361ccf5
tree913ad9e00896d191fe5dc3f1f53e1a7827e80529
parentc84fe17ba954d2784cc1ac5f9e1f3a8302ca951d
s3:lib/tldap: make use of tevent_req_defer_callback()

In tldap_msg_received() we call tevent_req_error() for more than
one request, if we do that we need to use tevent_req_defer_callback()
otherwise we're likely to crash, as a triggered callback may
invalidate our state.

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