diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c index 89f2c96b6f..19a8ca0c55 100644 --- a/servers/slapd/ad.c +++ b/servers/slapd/ad.c @@ -137,7 +137,7 @@ int slap_bv2ad( assert( ad != NULL ); assert( *ad == NULL ); /* temporary */ - if( bv == NULL || bv->bv_len == 0 ) { + if( bv == NULL || BER_BVISNULL( bv ) || BER_BVISEMPTY( bv ) ) { *text = "empty attribute description"; return rtn; }