From 166f9afa34bc0aaf5f2a273a9870bf3d50c59bee Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 12 Nov 2004 12:51:53 +0000 Subject: [PATCH] check validity of naming context --- servers/slapd/back-monitor/cache.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ); -- 2.39.5