libcli/cldap: fix a crash bug in cldap_socket_recv_dgram() (bug #8593)
commit17f1a97a614db4ed8292544988cb6a6cf56621d8
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Nov 2011 13:43:55 +0000 (10 14:43 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 Nov 2011 15:31:59 +0000 (10 16:31 +0100)
treeafdd7b001bc6ea8efd59956b90a38b0328e625db
parent88bcdbb16a42dcd21bb1584d7d7ffa00ac1957b8
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, unless in calls tevent_req_defer_callback() before.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Nov 10 16:31:59 CET 2011 on sn-devel-104
libcli/cldap/cldap.c