s3: Fix Coverity ID 2471: UNINIT
authorVolker Lendecke <vl@samba.org>
Tue, 12 Apr 2011 08:48:03 +0000 (10:48 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Apr 2011 18:07:24 +0000 (20:07 +0200)
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Apr 14 16:22:58 CEST 2011 on sn-devel-104
(cherry picked from commit d9c1d1f709ba49e57762456e529e283825a4fd7a)
(cherry picked from commit f8607bdd1ec8b77c7ff749ac886480ac5659c0fb)

source3/passdb/pdb_ipa.c

index 6faadec3f303b8680753d35ae79ef481c8e51629..5f89be7a29fc78c0361ad50115b99b34862e60f3 100644 (file)
@@ -1006,7 +1006,6 @@ static NTSTATUS ipasam_add_ipa_group_objectclasses(struct ldapsam_privates *ldap
                                                   uint32_t has_objectclass)
 {
        LDAPMod **mods = NULL;
-       NTSTATUS status;
        int ret;
 
        if (!(has_objectclass & HAS_GROUPOFNAMES)) {
@@ -1050,7 +1049,7 @@ static NTSTATUS ipasam_add_ipa_group_objectclasses(struct ldapsam_privates *ldap
        if (ret != LDAP_SUCCESS) {
                DEBUG(1, ("failed to modify/add group %s (dn = %s)\n",
                          name, dn));
-               return status;
+               return NT_STATUS_LDAP(ret);
        }
 
        return NT_STATUS_OK;