Commit 4db9863f authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix previous commit

parent 6edcf924
......@@ -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 );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment