From 8460fb4a7325d1f009dae07c39dd48309cb7d361 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Sat, 27 Apr 2002 13:49:40 +0000 Subject: Debug message cleanups. Fixed passphrase caching. --- agent/cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'agent/cache.c') diff --git a/agent/cache.c b/agent/cache.c index 445c4c5a8..4819ad197 100644 --- a/agent/cache.c +++ b/agent/cache.c @@ -139,7 +139,7 @@ housekeeping (void) /* Store DATA of length DATALEN in the cache under KEY and mark it - with a maximum lifetime of TTL seconds. If tehre is already data + with a maximum lifetime of TTL seconds. If there is already data under this key, it will be replaced. Using a DATA of NULL deletes the entry */ int @@ -170,6 +170,8 @@ agent_put_cache (const char *key, const char *data, int ttl) } if (data) { + r->created = r->accessed = time (NULL); + r->ttl = ttl; r->pw = new_data (data, strlen (data)+1); if (!r->pw) log_error ("out of core while allocating new cache item\n"); -- cgit v1.2.3