summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/ldb/ldb_ldap/ldb_ldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldb/ldb_ldap/ldb_ldap.c b/source3/lib/ldb/ldb_ldap/ldb_ldap.c
index 410ad64b4a..a17e80cde0 100644
--- a/source3/lib/ldb/ldb_ldap/ldb_ldap.c
+++ b/source3/lib/ldb/ldb_ldap/ldb_ldap.c
@@ -817,7 +817,7 @@ static int lldb_connect(struct ldb_context *ldb,
}
*module = talloc(ldb, struct ldb_module);
- if (!module) {
+ if (*module == NULL) {
ldb_oom(ldb);
talloc_free(lldb);
return -1;