From: Volker Lendecke Date: Fri, 21 Mar 2008 10:52:34 +0000 (+0100) Subject: Fix Coverity ID 473 X-Git-Tag: samba-3.3.0pre1~3174 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b82cf75c825298444781697072d83a163c43df4b;p=thirdparty%2Fsamba.git Fix Coverity ID 473 Simo, S4 also has this bug, you might want to merge the fix. --- diff --git a/source/lib/ldb/ldb_tdb/ldb_tdb.c b/source/lib/ldb/ldb_tdb/ldb_tdb.c index cdcfe5a0461..27cc0c69c6b 100644 --- a/source/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source/lib/ldb/ldb_tdb/ldb_tdb.c @@ -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;