From: Pierangelo Masarati Date: Thu, 22 Mar 2007 22:30:53 +0000 (+0000) Subject: fix test in case of bailout (ITS#4891) X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~588 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18fc3548cd6b302b4c256daf695fef48ede55028;p=openldap fix test in case of bailout (ITS#4891) --- diff --git a/servers/slapd/overlays/dynlist.c b/servers/slapd/overlays/dynlist.c index ff2d80b6e7..b81a038d44 100644 --- a/servers/slapd/overlays/dynlist.c +++ b/servers/slapd/overlays/dynlist.c @@ -489,7 +489,8 @@ cleanup:; if ( !BER_BVISNULL( &o.o_req_ndn ) ) { op->o_tmpfree( o.o_req_ndn.bv_val, op->o_tmpmemctx ); } - assert( o.ors_filterstr.bv_val != lud->lud_filter ); + assert( BER_BVISNULL( &o.ors_filterstr ) + || o.ors_filterstr.bv_val != lud->lud_filter ); op->o_tmpfree( o.ors_filterstr.bv_val, op->o_tmpmemctx ); ldap_free_urldesc( lud ); }