fix ITS#5959 fix

This commit is contained in:
Pierangelo Masarati 2009-02-27 01:45:20 +00:00
parent 7549abb063
commit 7fe91339df

View File

@ -766,7 +766,9 @@ ldap_build_entry(
}
attr->a_vals[i] = attr->a_vals[last];
BER_BVZERO( &attr->a_vals[last] );
i--;
}
} else if ( pretty ) {
LBER_FREE( attr->a_vals[i].bv_val );
attr->a_vals[i] = pval;
@ -801,6 +803,7 @@ ldap_build_entry(
}
attr->a_vals[i] = attr->a_vals[last];
BER_BVZERO( &attr->a_vals[last] );
i--;
}
}
BER_BVZERO( &attr->a_nvals[i] );