summaryrefslogtreecommitdiffstats
path: root/source/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
commit4d44388929f75d1480a8222a7cd2f575494a2b62 (patch)
treef1c0bec97fec1f136147883c9cc3ec0387a0fd27 /source/lib
parent1bd660fb9139238229fc6a80566c03f473cad094 (diff)
downloadsamba-4d44388929f75d1480a8222a7cd2f575494a2b62.tar.gz
samba-4d44388929f75d1480a8222a7cd2f575494a2b62.tar.xz
samba-4d44388929f75d1480a8222a7cd2f575494a2b62.zip
r19890: Fix klokwork ID 2188
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/ldb/modules/asq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/lib/ldb/modules/asq.c b/source/lib/ldb/modules/asq.c
index bee8038d9f8..da5afde2120 100644
--- a/source/lib/ldb/modules/asq.c
+++ b/source/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) {