s4/ldap: Fix nested searches SEGFAULT bug
[nivanova/samba.git] / source4 / libcli / ldap / ldap_client.h
index 084de2e6dc3cac59d7b27321494957ff42aa464b..d6ca29f8a7dac13ef2ca5cd427fd3c5e6825b732 100644 (file)
@@ -37,6 +37,10 @@ struct ldap_request {
        int num_replies;
        struct ldap_message **replies;
 
+       /* mark while we are processing replies
+        * in request of type LDAP_TAG_SearchRequest */
+       bool in_dispatch_replies;
+
        NTSTATUS status;
        DATA_BLOB data;
        struct {