r19485: Fix Coverity # 319
authorVolker Lendecke <vlendec@samba.org>
Tue, 24 Oct 2006 20:15:13 +0000 (20:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:24:37 +0000 (14:24 -0500)
(This used to be commit d12bdb6133c1612b9d3e1a0c6692cbc4ab17fe32)

source4/lib/ldb/ldb_ldap/ldb_ldap.c

index 410ad64b4adc20e2233aacf30edf04ed421fc2d0..a17e80cde02cedd6aa9138a9612a9910f8fa191f 100644 (file)
@@ -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;