s3-pdb_ipa: remove uninitialized (and unused) status code.
authorGünther Deschner <gd@samba.org>
Mon, 21 Feb 2011 16:32:48 +0000 (17:32 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 21 Feb 2011 17:03:20 +0000 (18:03 +0100)
Guenther

source3/passdb/pdb_ipa.c

index 9e52e952a1004bc590bd88d4429b45b74e77b597..feae2287e770ad359cc484cf975316c86a5333d0 100644 (file)
@@ -809,7 +809,6 @@ static NTSTATUS ipasam_add_objectclasses(struct ldapsam_privates *ldap_state,
 {
        char *dn;
        LDAPMod **mods = NULL;
-       NTSTATUS status;
        int ret;
        char *princ;
        const char *domain;
@@ -861,7 +860,7 @@ static NTSTATUS ipasam_add_objectclasses(struct ldapsam_privates *ldap_state,
        if (ret != LDAP_SUCCESS) {
                DEBUG(1, ("failed to modify/add user with uid = %s (dn = %s)\n",
                          pdb_get_username(sampass),dn));
-               return status;
+               return NT_STATUS_LDAP(ret);
        }
 
        return NT_STATUS_OK;