aboutsummaryrefslogtreecommitdiffstats
path: root/agent/cache.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-10-26 09:10:29 +0000
committerWerner Koch <[email protected]>2010-10-26 09:10:29 +0000
commit02e4c3cb7efacee1b6f716e5b9e923e7e2ded2bf (patch)
tree7b6fa659e8f77cb41b2c8ce3cf31634376c276e2 /agent/cache.c
parentRemove cruft. (diff)
downloadgnupg-02e4c3cb7efacee1b6f716e5b9e923e7e2ded2bf.tar.gz
gnupg-02e4c3cb7efacee1b6f716e5b9e923e7e2ded2bf.zip
Re-implemented GPG's --passwd command and improved it.
Diffstat (limited to 'agent/cache.c')
-rw-r--r--agent/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/cache.c b/agent/cache.c
index abbf8c653..f19e97d32 100644
--- a/agent/cache.c
+++ b/agent/cache.c
@@ -284,7 +284,7 @@ agent_put_cache (const char *key, cache_mode_t cache_mode,
default: ttl = opt.def_cache_ttl; break;
}
}
- if (!ttl || cache_mode == CACHE_MODE_IGNORE)
+ if ((!ttl && data) || cache_mode == CACHE_MODE_IGNORE)
return 0;
for (r=thecache; r; r = r->next)