s3: Fix Coverity ID 2473, UNINIT
authorVolker Lendecke <vl@samba.org>
Fri, 8 Apr 2011 09:07:11 +0000 (11:07 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 11 Apr 2011 14:30:19 +0000 (16:30 +0200)
Signed-off-by: Günther Deschner <gd@samba.org>
source3/passdb/pdb_ipa.c

index f118e6e49ef132f7545c430dde8c9681225e067e..7de46eaaa3454eb3f8f81a15549f3668b71e137f 100644 (file)
@@ -973,7 +973,6 @@ static NTSTATUS ipasam_add_posix_account_objectclass(struct ldapsam_privates *ld
 {
        int ret;
        LDAPMod **mods = NULL;
-       NTSTATUS status;
 
        smbldap_set_mod(&mods, LDAP_MOD_ADD,
                        "objectclass", "posixAccount");
@@ -995,7 +994,7 @@ static NTSTATUS ipasam_add_posix_account_objectclass(struct ldapsam_privates *ld
        if (ret != LDAP_SUCCESS) {
                DEBUG(1, ("failed to modify/add user with uid = %s (dn = %s)\n",
                          username, dn));
-               return status;
+               return NT_STATUS_LDAP(ret);
        }
 
        return NT_STATUS_OK;