summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-25 16:38:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:04 -0500
commitd128defd315045c000f73e268a3efea761a84afd (patch)
treeee615d6370a9f105cc1ac787429462175d29559d /source3/lib
parent433869019bdaa7f21467769eb5398f2973fa54f3 (diff)
downloadsamba-d128defd315045c000f73e268a3efea761a84afd.tar.gz
samba-d128defd315045c000f73e268a3efea761a84afd.tar.bz2
samba-d128defd315045c000f73e268a3efea761a84afd.zip
r19890: Fix klokwork ID 2188
(This used to be commit 4d44388929f75d1480a8222a7cd2f575494a2b62)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ldb/modules/asq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c
index bee8038d9f..da5afde212 100644
--- a/source3/lib/ldb/modules/asq.c
+++ b/source3/lib/ldb/modules/asq.c
@@ -161,7 +161,9 @@ static int asq_base_callback(struct ldb_context *ldb, void *context, struct ldb_
goto error;
}
- ac = talloc_get_type(context, struct asq_context);
+ if (!(ac = talloc_get_type(context, struct asq_context))) {
+ goto error;
+ }
/* we are interested only in the single reply (base search) we receive here */
if (ares->type == LDB_REPLY_ENTRY) {