summaryrefslogtreecommitdiff
path: root/source4/torture/ldap
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/ldap')
-rw-r--r--source4/torture/ldap/cldap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/ldap/cldap.c b/source4/torture/ldap/cldap.c
index 78bc6063a5..45d758547d 100644
--- a/source4/torture/ldap/cldap.c
+++ b/source4/torture/ldap/cldap.c
@@ -186,6 +186,10 @@ static void cldap_dump_results(struct cldap_search *search)
struct ldb_ldif ldif;
struct ldb_context *ldb;
+ if (!search || !(search->out.response)) {
+ return;
+ }
+
/* we need a ldb context to use ldb_ldif_write_file() */
ldb = ldb_init(NULL);