diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-25 16:39:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:05 -0500 |
commit | 76b2e7ba1337591edd9fbfe777a47e3413a77c32 (patch) | |
tree | 7ce667e4bc4f935ba4d9a59b7b05ade1b5d14d3a /source3/lib/ldb | |
parent | d128defd315045c000f73e268a3efea761a84afd (diff) | |
download | samba-76b2e7ba1337591edd9fbfe777a47e3413a77c32.tar.gz samba-76b2e7ba1337591edd9fbfe777a47e3413a77c32.tar.bz2 samba-76b2e7ba1337591edd9fbfe777a47e3413a77c32.zip |
r19891: Fix klokwork id 2189
(This used to be commit b6933c3043b73b68a30f57f681185a79c8e205c2)
Diffstat (limited to 'source3/lib/ldb')
-rw-r--r-- | source3/lib/ldb/modules/asq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/ldb/modules/asq.c b/source3/lib/ldb/modules/asq.c index da5afde212..36ea0da256 100644 --- a/source3/lib/ldb/modules/asq.c +++ b/source3/lib/ldb/modules/asq.c @@ -187,7 +187,9 @@ static int asq_reqs_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) { |