summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools/ldbsearch.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-05-01 06:49:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:28 -0500
commitfe9312609694011d9201a3d07df2cde5a75eec05 (patch)
tree6d4459d90539c04fc49274827cba0b220d506b46 /source4/lib/ldb/tools/ldbsearch.c
parent806c5c96211816360ebd0072dd9155e3db6b5195 (diff)
downloadsamba-fe9312609694011d9201a3d07df2cde5a75eec05.tar.gz
samba-fe9312609694011d9201a3d07df2cde5a75eec05.tar.bz2
samba-fe9312609694011d9201a3d07df2cde5a75eec05.zip
r15372: Don't look at possibly undefined controls in failure cases.
Andrew Bartlett (This used to be commit 04f383048ae48af6b28052ba6461fe2e476e7c44)
Diffstat (limited to 'source4/lib/ldb/tools/ldbsearch.c')
-rw-r--r--source4/lib/ldb/tools/ldbsearch.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source4/lib/ldb/tools/ldbsearch.c b/source4/lib/ldb/tools/ldbsearch.c
index 77f54fee65..3c36d3be14 100644
--- a/source4/lib/ldb/tools/ldbsearch.c
+++ b/source4/lib/ldb/tools/ldbsearch.c
@@ -89,9 +89,6 @@ static int do_search(struct ldb_context *ldb,
ret = ldb_request(ldb, req);
if (ret != LDB_SUCCESS) {
printf("search failed - %s\n", ldb_errstring(ldb));
- if (req->op.search.res && req->op.search.res->controls) {
- handle_controls_reply(req->op.search.res->controls, req->controls);
- }
return -1;
}