From: Pierangelo Masarati Date: Wed, 30 Jun 2004 16:25:14 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~142 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d8d3bded727529eb9863d6cf17c7c778569317ad;p=openldap cleanup --- 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; }