diff options
author | Simo Sorce <idra@samba.org> | 2006-09-10 03:11:03 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2006-09-10 03:11:03 +0000 |
commit | 451043ed02e1d42ccaa023b3885a80aab33d8ba4 (patch) | |
tree | f304fb082db53cde52cf581d9378ee77dfc8cb5a /source/lib/ldb | |
parent | f91ff245f37915c55c21827814646a62d285ad14 (diff) | |
download | samba-451043ed02e1d42ccaa023b3885a80aab33d8ba4.tar.gz samba-451043ed02e1d42ccaa023b3885a80aab33d8ba4.tar.xz samba-451043ed02e1d42ccaa023b3885a80aab33d8ba4.zip |
r18317: Make sure we actually have a valid reply or fail
Diffstat (limited to 'source/lib/ldb')
-rw-r--r-- | source/lib/ldb/modules/asq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/lib/ldb/modules/asq.c b/source/lib/ldb/modules/asq.c index 2ab04afe594..a06dd5391a5 100644 --- a/source/lib/ldb/modules/asq.c +++ b/source/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) { |