summaryrefslogtreecommitdiff
path: root/source4/libcli/ldap
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2010-01-25 12:22:39 +0200
committerStefan Metzmacher <metze@samba.org>2010-01-29 14:09:53 +0100
commita4d0ed5a1027f4cb58732c78cb63464dbf9cc287 (patch)
treeef058178e5b12210710c2cdcbb94e02c8a9a84c2 /source4/libcli/ldap
parente3d50e89ab5081ae858017f83f3258283baaf978 (diff)
downloadsamba-a4d0ed5a1027f4cb58732c78cb63464dbf9cc287.tar.gz
samba-a4d0ed5a1027f4cb58732c78cb63464dbf9cc287.tar.bz2
samba-a4d0ed5a1027f4cb58732c78cb63464dbf9cc287.zip
s4/ldap: Fix nested searches SEGFAULT bug
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/libcli/ldap')
-rw-r--r--source4/libcli/ldap/ldap_client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/ldap/ldap_client.h b/source4/libcli/ldap/ldap_client.h
index 084de2e6dc..d6ca29f8a7 100644
--- a/source4/libcli/ldap/ldap_client.h
+++ b/source4/libcli/ldap/ldap_client.h
@@ -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 {