From: Pierangelo Masarati Date: Fri, 12 Nov 2004 12:51:53 +0000 (+0000) Subject: check validity of naming context X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~334 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=166f9afa34bc0aaf5f2a273a9870bf3d50c59bee;p=openldap check validity of naming context --- diff --git a/servers/slapd/back-monitor/cache.c b/servers/slapd/back-monitor/cache.c index 4f4ad05b2b..e501fc116e 100644 --- a/servers/slapd/back-monitor/cache.c +++ b/servers/slapd/back-monitor/cache.c @@ -188,6 +188,10 @@ monitor_cache_dn2entry( *matched = NULL; + if ( !dnIsSuffix( ndn, &op->o_bd->be_nsuffix[ 0 ] ) ) { + return( -1 ); + } + rc = monitor_cache_get( mi, ndn, ep ); if ( !rc && *ep != NULL ) { return( 0 );