]> git.sur5r.net Git - openldap/commitdiff
don't leak in case of attribute not found
authorPierangelo Masarati <ando@openldap.org>
Tue, 9 Aug 2005 03:39:12 +0000 (03:39 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 9 Aug 2005 03:39:12 +0000 (03:39 +0000)
servers/slapd/slapi/slapi_utils.c

index ca370dd483d15fc19d045eff3816a268b9c1cfd5..8c82d9adea5721ed84bb77d5dbd2414661cc6f61 100644 (file)
@@ -226,12 +226,12 @@ slapi_entry_attr_merge(
        BerVarray               bv;
        int                     rc;
 
-       rc = bvptr2obj( vals, &bv );
+       rc = slap_str2ad( type, &ad, &text );
        if ( rc != LDAP_SUCCESS ) {
                return -1;
        }
        
-       rc = slap_str2ad( type, &ad, &text );
+       rc = bvptr2obj( vals, &bv );
        if ( rc != LDAP_SUCCESS ) {
                return -1;
        }