summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-09-10 03:11:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:07 -0500
commitfb15300c60ee92addc7664ed96d3d21e634b2d0b (patch)
tree9247848cc3e217a2fb56c936ba9ae2919f50f874 /source4/lib
parentb2355bf077d8695b986a53fdd6042ccee9c5abf4 (diff)
downloadsamba-fb15300c60ee92addc7664ed96d3d21e634b2d0b.tar.gz
samba-fb15300c60ee92addc7664ed96d3d21e634b2d0b.tar.bz2
samba-fb15300c60ee92addc7664ed96d3d21e634b2d0b.zip
r18317: Make sure we actually have a valid reply or fail
(This used to be commit 41cb3a9258012e628a2d87959cc066f6c5d92255)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/modules/asq.c3
1 files changed, 3 insertions, 0 deletions
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) {