Fix Coverity ID 473
authorVolker Lendecke <vl@samba.org>
Fri, 21 Mar 2008 10:52:34 +0000 (11:52 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 21 Mar 2008 10:52:34 +0000 (11:52 +0100)
Simo, S4 also has this bug, you might want to merge the fix.

source/lib/ldb/ldb_tdb/ldb_tdb.c

index cdcfe5a0461ae24ff95b9659f675e277c77fff27..27cc0c69c6b2b9b9e7b454a9e3c9ecf1c58c286f 100644 (file)
@@ -1058,7 +1058,7 @@ static int ltdb_connect(struct ldb_context *ldb, const char *url,
        ltdb->sequence_number = 0;
 
        *module = talloc(ldb, struct ldb_module);
-       if (!module) {
+       if ((*module) == NULL) {
                ldb_oom(ldb);
                talloc_free(ltdb);
                return -1;