diff options
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) { |