]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/cache.c
Add reference to ldap.conf(5).
[openldap] / libraries / libldap / cache.c
index 8216461c1eaa9e15230e2b8865dd8208860c5d02..d97a362d1884c9dc6288e0337f7f79c4d1ce7fd8 100644 (file)
@@ -1,4 +1,8 @@
 /*
+ * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+/*  Portions
  *  Copyright (c) 1993 The Regents of the University of Michigan.
  *  All rights reserved.
  *
@@ -7,11 +11,6 @@
 
 #include "portable.h"
 
-
-#ifndef lint 
-static char copyright[] = "@(#) Copyright (c) 1993 The Regents of the University of Michigan.\nAll rights reserved.\n";
-#endif
-
 #include <stdio.h>
 #include <stdlib.h>
 
@@ -19,8 +18,6 @@ static char copyright[] = "@(#) Copyright (c) 1993 The Regents of the University
 #include <ac/string.h>
 #include <ac/time.h>
 
-#include "lber.h"
-#include "ldap.h"
 #include "ldap-int.h"
 
 #ifndef LDAP_NOCACHE
@@ -273,6 +270,7 @@ ldap_add_result_to_cache( LDAP *ld, LDAPMessage *result )
        }
 
        if ( result->lm_msgtype != LDAP_RES_SEARCH_ENTRY &&
+           result->lm_msgtype != LDAP_RES_SEARCH_REFERENCE &&
            result->lm_msgtype != LDAP_RES_SEARCH_RESULT &&
            result->lm_msgtype != LDAP_RES_COMPARE ) {
                /*