From fb15300c60ee92addc7664ed96d3d21e634b2d0b Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 10 Sep 2006 03:11:03 +0000 Subject: r18317: Make sure we actually have a valid reply or fail (This used to be commit 41cb3a9258012e628a2d87959cc066f6c5d92255) --- source4/lib/ldb/modules/asq.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4') diff --git a/source4/lib/ldb/modules/asq.c b/source4/lib/ldb/modules/asq.c index 2ab04afe59..a06dd5391a 100644 --- a/source4/lib/ldb/modules/asq.c +++ b/source4/lib/ldb/modules/asq.c @@ -289,6 +289,9 @@ static int asq_requests(struct ldb_handle *handle) { ac = talloc_get_type(handle->private_data, struct asq_context); /* look up the DNs */ + if (ac->base_res == NULL) { + return LDB_ERR_NO_SUCH_OBJECT; + } el = ldb_msg_find_element(ac->base_res->message, ac->req_attribute); /* no values found */ if (el == NULL) { -- cgit