From: Pierangelo Masarati Date: Wed, 14 Apr 2004 17:47:53 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3643d5fc16082dd22211b5446e4491fd1f34543b;p=openldap cleanup --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index e0ddf3269d..4f66a95fe0 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -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