s3: Fix Coverity ID 2472, 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 15:14:35 +0000 (17:14 +0200)
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Apr 11 17:14:35 CEST 2011 on sn-devel-104

source3/passdb/pdb_ipa.c

index 7de46eaaa3454eb3f8f81a15549f3668b71e137f..da8e9f06bd7b31ac16a5068816ce99466a9f6e4b 100644 (file)
@@ -1063,7 +1063,6 @@ static NTSTATUS ipasam_add_ipa_objectclasses(struct ldapsam_privates *ldap_state
                                             uint32_t has_objectclass)
 {
        LDAPMod **mods = NULL;
-       NTSTATUS status;
        int ret;
        char *princ;
 
@@ -1127,7 +1126,7 @@ static NTSTATUS ipasam_add_ipa_objectclasses(struct ldapsam_privates *ldap_state
                if (ret != LDAP_SUCCESS) {
                        DEBUG(1, ("failed to modify/add user with uid = %s (dn = %s)\n",
                                  name, dn));
-                       return status;
+                       return NT_STATUS_LDAP(ret);
                }
        }