summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-21 11:52:34 +0100
committerVolker Lendecke <vl@samba.org>2008-03-21 11:52:34 +0100
commit4f4f1dfbb6b66c13de32bdc78fc13c030f10d71d (patch)
tree8e21b90fb394ee5e353d0da3dcefe60ca481aa37 /source3
parent1e696c284552904cc16ed8ccac239a7fad6e1d97 (diff)
downloadsamba-4f4f1dfbb6b66c13de32bdc78fc13c030f10d71d.tar.gz
samba-4f4f1dfbb6b66c13de32bdc78fc13c030f10d71d.tar.bz2
samba-4f4f1dfbb6b66c13de32bdc78fc13c030f10d71d.zip
Fix Coverity ID 473
Simo, S4 also has this bug, you might want to merge the fix. (This used to be commit b82cf75c825298444781697072d83a163c43df4b)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/ldb/ldb_tdb/ldb_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldb/ldb_tdb/ldb_tdb.c b/source3/lib/ldb/ldb_tdb/ldb_tdb.c
index cdcfe5a046..27cc0c69c6 100644
--- a/source3/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source3/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;