]> git.sur5r.net Git - openldap/commitdiff
check validity of naming context
authorPierangelo Masarati <ando@openldap.org>
Fri, 12 Nov 2004 12:51:53 +0000 (12:51 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 12 Nov 2004 12:51:53 +0000 (12:51 +0000)
servers/slapd/back-monitor/cache.c

index 4f4ad05b2b49281ce4cee0e6c9cfce9cf9e2e898..e501fc116e85f796b3ba3d862704d80c5ee39135 100644 (file)
@@ -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 );