Commit a10fe8e0 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

caught nasty empty DN bug

parent 66ddf629
...@@ -874,7 +874,10 @@ uniqueMemberNormalize( ...@@ -874,7 +874,10 @@ uniqueMemberNormalize(
assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage )); assert( SLAP_MR_IS_VALUE_OF_SYNTAX( usage ));
ber_dupbv( &out, val ); ber_dupbv( &out, val );
if( out.bv_len != 0 ) { if( BER_BVISEMPTY( &out ) ) {
*normalized = out;
} else {
struct berval uid = BER_BVNULL; struct berval uid = BER_BVNULL;
if( out.bv_val[out.bv_len-1] == 'B' if( out.bv_val[out.bv_len-1] == 'B'
......
Markdown is supported
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