From: Pierangelo Masarati Date: Sun, 18 Jul 2004 21:34:01 +0000 (+0000) Subject: dnMatch must be called with valid args X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~52 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5992a9b7e64bbe616572b508c9a097bc2ea6dc63;p=openldap dnMatch must be called with valid args --- diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index c8d0868041..44528fa2f6 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -975,6 +975,8 @@ dnMatch( assert( matchp ); assert( value ); assert( assertedValue ); + assert( !BER_BVISNULL( value ) ); + assert( !BER_BVISNULL( asserted ) ); match = value->bv_len - asserted->bv_len;