]> git.sur5r.net Git - openldap/commitdiff
Cleanup previous
authorHoward Chu <hyc@openldap.org>
Mon, 7 Apr 2003 11:40:23 +0000 (11:40 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 7 Apr 2003 11:40:23 +0000 (11:40 +0000)
servers/slapd/back-ldap/search.c

index d50f82ed80277e34f24dc265f206fb8665119d3b..fe2755c67a31971b7cff0dac9549bbebfc1de30c 100644 (file)
@@ -533,24 +533,20 @@ ldap_build_entry(
 
 next_attr:;
 
-               if ( normalize ) {
-                       if ( last && attr->a_desc->ad_type->sat_equality &&
-                               attr->a_desc->ad_type->sat_equality->smr_normalize ) {
-                               int i;
-
-                               attr->a_nvals = ch_malloc((last+1)*sizeof(struct berval));
-                               for (i=0; i<last; i++) {
-                                       attr->a_desc->ad_type->sat_equality->smr_normalize(
-                                               SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX,
-                                               attr->a_desc->ad_type->sat_syntax,
-                                               attr->a_desc->ad_type->sat_equality,
-                                               &attr->a_vals[i], &attr->a_nvals[i] );
-                               }
-                               attr->a_nvals[i].bv_val = NULL;
-                               attr->a_nvals[i].bv_len = 0;
-                       } else {
-                               attr->a_nvals = attr->a_vals;
+               if ( normalize && last && attr->a_desc->ad_type->sat_equality &&
+                       attr->a_desc->ad_type->sat_equality->smr_normalize ) {
+                       int i;
+
+                       attr->a_nvals = ch_malloc((last+1)*sizeof(struct berval));
+                       for (i=0; i<last; i++) {
+                               attr->a_desc->ad_type->sat_equality->smr_normalize(
+                                       SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX,
+                                       attr->a_desc->ad_type->sat_syntax,
+                                       attr->a_desc->ad_type->sat_equality,
+                                       &attr->a_vals[i], &attr->a_nvals[i] );
                        }
+                       attr->a_nvals[i].bv_val = NULL;
+                       attr->a_nvals[i].bv_len = 0;
                } else {
                        attr->a_nvals = attr->a_vals;
                }