]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Wed, 30 Jun 2004 16:25:14 +0000 (16:25 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 30 Jun 2004 16:25:14 +0000 (16:25 +0000)
servers/slapd/ad.c

index 89f2c96b6f91db8547262fb2df314c3c7285b06b..19a8ca0c554d14e61c135ed8465270bb4ef031ae 100644 (file)
@@ -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;
        }