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 17:15:38 +0000 (12:15 -0500)
(This used to be commit d9f1697c1f09e1f01c15d8fc210b7b5b7c7ec7bb)

source3/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;