]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Wed, 14 Apr 2004 17:47:53 +0000 (17:47 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 14 Apr 2004 17:47:53 +0000 (17:47 +0000)
servers/slapd/sasl.c

index e0ddf3269d4fbae2c399aff9416cd631a293c81d..4f66a95fe04edd8aab83212a75b1c0ada93653cd 100644 (file)
@@ -1873,7 +1873,7 @@ int slap_sasl_getdn( Connection *conn, Operation *op, struct berval *id,
 
        /* Run thru regexp */
        slap_sasl2dn( op, dn, &dn2, flags );
-       if( dn2.bv_val ) {
+       if( !BER_BVISNULL( &dn2 ) ) {
                sl_free( dn->bv_val, op->o_tmpmemctx );
                *dn = dn2;
 #ifdef NEW_LOGGING