git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9add4d
)
Fix Coverity ID 473
author
Volker Lendecke
<vl@samba.org>
Fri, 21 Mar 2008 10:52:34 +0000
(11:52 +0100)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source/lib/ldb/ldb_tdb/ldb_tdb.c
b/source/lib/ldb/ldb_tdb/ldb_tdb.c
index cdcfe5a0461ae24ff95b9659f675e277c77fff27..27cc0c69c6b2b9b9e7b454a9e3c9ecf1c58c286f 100644
(file)
--- 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;