git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b804c53
)
ldb:ltdb_sequence_number - check for an OOM exception
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Sat, 8 Jan 2011 21:07:30 +0000
(22:07 +0100)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Wed, 12 Jan 2011 18:52:19 +0000
(19:52 +0100)
source4/lib/ldb/ldb_tdb/ldb_tdb.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 066d4085bbacff3466b209605351a503bb2a47da..38724987a93380fdb477189a822fb13927e87b68 100644
(file)
--- a/
source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/
source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@
-1105,6
+1105,10
@@
static int ltdb_sequence_number(struct ltdb_context *ctx,
}
dn = ldb_dn_new(tmp_ctx, ldb, LTDB_BASEINFO);
+ if (dn == NULL) {
+ ret = LDB_ERR_OPERATIONS_ERROR;
+ goto done;
+ }
msg = ldb_msg_new(tmp_ctx);
if (msg == NULL) {