libcli/cldap: fix a crash bug in cldap_socket_recv_dgram() (bug #8593)
commit5950aa455eab5a5305897eb67a4a1bcfeb10b409
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Nov 2011 13:43:55 +0000 (10 14:43 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jan 2012 20:29:44 +0000 (23 21:29 +0100)
tree517766802cb02f908ec0c29efe993d68ee1d09a4
parent33b160306c7e79658034465cce2391cf9af90481
libcli/cldap: fix a crash bug in cldap_socket_recv_dgram() (bug #8593)

After a calling any wrapper of tevent_req_notify_callback(),
e.g. tevent_req_nterror(), tevent_req_done(), tevent_req_nomem(),
a function has to return immediately otherwise it is very likely to
crash.

metze

(similar to commit 17f1a97a614db4ed8292544988cb6a6cf56621d8)
(cherry picked from commit 740a001971bab647c1ab129b3dd2fbccaddc4e7b)
libcli/cldap/cldap.c