summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_simple_ldb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/ldap_server/ldap_simple_ldb.c b/source4/ldap_server/ldap_simple_ldb.c
index 7de992f3a4..d4c576a189 100644
--- a/source4/ldap_server/ldap_simple_ldb.c
+++ b/source4/ldap_server/ldap_simple_ldb.c
@@ -40,7 +40,7 @@ struct samdb_context {
*/
static char *sldb_fix_dn(const char *dn)
{
- char *new_dn, *n, *current;
+ char *new_dn;
int i, j, k;
/* alloc enough room to host the whole dn as multibyte string */
@@ -333,8 +333,6 @@ static NTSTATUS sldb_Del(struct ldapsrv_partition *partition, struct ldapsrv_cal
ldb_set_alloc(ldb, talloc_ldb_alloc, samdb);
ldb_ret = ldb_delete(ldb, dn);
- errstr = ldb_errstring(ldb);
-
del_reply = ldapsrv_init_reply(call, LDAP_TAG_DelResponse);
ALLOC_CHECK(del_reply);