This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] nscd



Hi,

Here is a small patch for nscd. If you disable a cache, prune_cache
should not be called (or we end with a seg.fault):

2000-10-23  Thorsten Kukuk  <kukuk@suse.de>

	* nscd/connections.c: Don't invalidate a cache if it is not enabled.

--- nscd/connections.c
+++ nscd/connections.c	2000/10/23 09:05:02
@@ -207,7 +207,8 @@
     number = hstdb;
   else return;
 
-  prune_cache (&dbs[number], LONG_MAX);
+  if (dbs[number].enabled)
+    prune_cache (&dbs[number], LONG_MAX);
 }
 

 Thorsten 

-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/       kukuk@suse.de
SuSE GmbH            Schanzaeckerstr. 10            90443 Nuernberg
Linux is like a Vorlon.  It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]