summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-30 19:08:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:45 -0500
commitb7ab5074fae690b153f86a6cd89b17d0cd75862d (patch)
tree900683dee97b3e2449a939fe4068c72e28a32533
parentd494c66ca7b4378957acaa7591214992e9cacbfd (diff)
downloadsamba-b7ab5074fae690b153f86a6cd89b17d0cd75862d.tar.gz
samba-b7ab5074fae690b153f86a6cd89b17d0cd75862d.tar.bz2
samba-b7ab5074fae690b153f86a6cd89b17d0cd75862d.zip
r15962: fix a crash when connect fails
metze (This used to be commit 0540a5f220bac6f9b9782c22e23a0b19f9aa86cb)
-rw-r--r--source4/torture/ldap/schema.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/ldap/schema.c b/source4/torture/ldap/schema.c
index f6e19a1adb..51ff6f301f 100644
--- a/source4/torture/ldap/schema.c
+++ b/source4/torture/ldap/schema.c
@@ -500,6 +500,7 @@ BOOL torture_ldap_schema(struct torture_context *torture)
NULL,
cmdline_credentials,
0, NULL);
+ if (!ldb) goto failed;
ret &= test_search_rootDSE(ldb, &rootDSE);
if (!ret) goto failed;