[PATCH] nscd
Thorsten Kukuk
kukuk@suse.de
Mon Oct 23 04:08:00 GMT 2000
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.
More information about the Libc-hacker
mailing list