caught nasty empty DN bug

This commit is contained in:
Pierangelo Masarati 2004-05-13 22:12:24 +00:00
parent 66ddf62922
commit a10fe8e098

View file

@ -874,7 +874,10 @@ uniqueMemberNormalize(
assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage ));
ber_dupbv( &out, val );
if( out.bv_len != 0 ) {
if( BER_BVISEMPTY( &out ) ) {
*normalized = out;
} else {
struct berval uid = BER_BVNULL;
if( out.bv_val[out.bv_len-1] == 'B'