summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-01-08 22:07:30 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-01-12 19:52:19 +0100
commit25964e775ac9e2700025e1beadc09ead31e25d0b (patch)
treed18c839b4ba110408a556173a2018ca77d6b379e /source4/lib/ldb
parentb804c5396cb5c14612f8336c9b71afdbc3f81b0e (diff)
downloadsamba-25964e775ac9e2700025e1beadc09ead31e25d0b.tar.gz
samba-25964e775ac9e2700025e1beadc09ead31e25d0b.tar.bz2
samba-25964e775ac9e2700025e1beadc09ead31e25d0b.zip
ldb:ltdb_sequence_number - check for an OOM exception
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 066d4085bb..38724987a9 100644
--- 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) {