From: Pierangelo Masarati Date: Mon, 27 Aug 2007 10:12:39 +0000 (+0000) Subject: fix previous commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4db9863fa8c05040d46eff0ba67b58f4f3011d13;p=openldap fix previous commit --- diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c index b091233479..495d03af74 100644 --- a/servers/slapd/slapadd.c +++ b/servers/slapd/slapadd.c @@ -349,7 +349,7 @@ slapadd( int argc, char **argv ) if ( attr ) { int i; - for ( i = 0; !BER_BVISNULL( &attr->a_vals[ i ] ); i++ ) { + for ( i = 0; !BER_BVISNULL( &attr->a_nvals[ i ] ); i++ ) { int rc_sid; rc_sid = slap_parse_csn_sid( &attr->a_nvals[ i ] ); @@ -385,8 +385,8 @@ slapadd( int argc, char **argv ) } } - if ( attr->a_nvals != attr->a_vals ) { - ber_bvarray_free( attr->a_vals ); + if ( attr->a_nvals != attr->a_nvals ) { + ber_bvarray_free( attr->a_nvals ); } attr->a_nvals = NULL; ber_bvarray_free( attr->a_vals );