summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules/kludge_acl.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-08-28 05:43:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:03:00 -0500
commit714c5c92ef8e80b3510e222ce621401e55d05d7e (patch)
treec52e0dfb100f8cbbb83014a2f725d555954e6bbd /source4/dsdb/samdb/ldb_modules/kludge_acl.c
parent362ff066903524c710c53b92aad26671c8ebaa42 (diff)
downloadsamba-714c5c92ef8e80b3510e222ce621401e55d05d7e.tar.gz
samba-714c5c92ef8e80b3510e222ce621401e55d05d7e.tar.bz2
samba-714c5c92ef8e80b3510e222ce621401e55d05d7e.zip
r24731: Remove unused code - if we hit these error conditions, then we are
dead anyway, and a segfault would leave us with more infomation. Andrew Bartlett (This used to be commit 62320616ff8795ff18c8f49029d81f12558c10ed)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/kludge_acl.c')
-rw-r--r--source4/dsdb/samdb/ldb_modules/kludge_acl.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/kludge_acl.c b/source4/dsdb/samdb/ldb_modules/kludge_acl.c
index d26c8e3485..2d6d8a2d80 100644
--- a/source4/dsdb/samdb/ldb_modules/kludge_acl.c
+++ b/source4/dsdb/samdb/ldb_modules/kludge_acl.c
@@ -236,11 +236,6 @@ static int kludge_acl_callback(struct ldb_context *ldb, void *context, struct ld
struct kludge_private_data *data;
int i, ret;
- if (!context || !ares) {
- ldb_set_errstring(ldb, "NULL Context or Result in callback");
- goto error;
- }
-
ac = talloc_get_type(context, struct kludge_acl_context);
data = talloc_get_type(ac->module->private_data, struct kludge_private_data);
@@ -296,10 +291,6 @@ static int kludge_acl_callback(struct ldb_context *ldb, void *context, struct ld
}
return ac->up_callback(ldb, ac->up_context, ares);
-
-error:
- talloc_free(ares);
- return LDB_ERR_OPERATIONS_ERROR;
}
static int kludge_acl_search(struct ldb_module *module, struct ldb_request *req)