]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/cache.c
Add search no-op support.
[openldap] / servers / slapd / back-monitor / cache.c
index 0281564db01a63f63c0f25a9fd0b0cb3aeb2a998..6572c2af2eb219cf34c88337aab589e133e5d4db 100644 (file)
@@ -1,12 +1,9 @@
 /* cache.c - routines to maintain an in-core cache of entries */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 /*
- * Copyright 2001 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
- * 
  * Copyright 2001, Pierangelo Masarati, All rights reserved. <ando@sys-net.it>
  * 
  * This work has beed deveolped for the OpenLDAP Foundation 
@@ -209,7 +206,7 @@ monitor_cache_dn2entry(
 
        /* try with parent/ancestors */
        if ( ndn->bv_len ) {
-               p_ndn.bv_val = dn_parent( NULL, ndn->bv_val );
+               dnParent( ndn, &p_ndn );
        }
 
        if ( p_ndn.bv_val == NULL ) {