r12942: this way is better
authorSimo Sorce <idra@samba.org>
Sun, 15 Jan 2006 06:43:43 +0000 (06:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:11 +0000 (13:51 -0500)
(This used to be commit 982576d2489c9ac3f7d854f598a64a8c4d91a485)

source4/lib/ldb/modules/asq.c

index 1fbf7521fb653d7c75d42cbbf027dc4721cf3b55..70bb01907465f499128b76650805767de733813f 100644 (file)
@@ -146,8 +146,7 @@ static int asq_search(struct ldb_module *module, struct ldb_request *req)
                exp_req->operation = LDB_REQ_SEARCH;
                exp_req->op.search.base = ldb_dn_explode(exp_req, el->values[i].data);
                if (exp_req->op.search.base == NULL) {
-                       build_response(res, ASQ_CTRL_INVALID_ATTRIBUTE_SYNTAX);
-                       return LDB_ERR_OPERATIONS_ERROR;
+                       return build_response(res, ASQ_CTRL_INVALID_ATTRIBUTE_SYNTAX);
                }
                exp_req->op.search.scope = LDB_SCOPE_BASE;
                exp_req->op.search.tree = req->op.search.tree;