From 18fc3548cd6b302b4c256daf695fef48ede55028 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 22 Mar 2007 22:30:53 +0000 Subject: [PATCH] fix test in case of bailout (ITS#4891) --- servers/slapd/overlays/dynlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5