1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* cache.c (housekeeping): Fixed linking in the remove case.

This commit is contained in:
Werner Koch 2002-02-06 14:51:35 +00:00
parent a3839b57b6
commit 0c4c0f2ecc
4 changed files with 20 additions and 5 deletions

View file

@ -125,7 +125,7 @@ housekeeping (void)
if (!rprev)
thecache = r2;
else
rprev = r2;
rprev->next = r2;
r = r2;
}
else
@ -152,7 +152,9 @@ agent_put_cache (const char *key, const char *data, int ttl)
housekeeping ();
if (ttl < 1)
ttl = 60*5; /* default is 5 minutes */
ttl = opt.def_cache_ttl;
if (!ttl)
return 0;
for (r=thecache; r; r = r->next)
{