r2757: some minor fixes
authorStefan Metzmacher <metze@samba.org>
Thu, 30 Sep 2004 13:29:27 +0000 (13:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:30 +0000 (12:59 -0500)
metze
(This used to be commit 991b4777c8690337bb319c57550e918ced5d7503)

source4/ldap_server/ldap_simple_ldb.c

index 7de992f3a485600bc504a0862b3adae00c4a5c32..d4c576a189d1f0c44ab607748938efadce63f9a2 100644 (file)
@@ -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);