diff options
author | NIIBE Yutaka <[email protected]> | 2020-10-09 03:02:07 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2020-10-09 04:57:29 +0000 |
commit | 33cb1655f1b7c597d1ebdcb38447648477e6ac9f (patch) | |
tree | ec902635a5fb7321aabece0bbec7584ad9528969 /agent/cache.c | |
parent | doc: Add notes on how to setup LDAP (diff) | |
download | gnupg-33cb1655f1b7c597d1ebdcb38447648477e6ac9f.tar.gz gnupg-33cb1655f1b7c597d1ebdcb38447648477e6ac9f.zip |
agent: Fix SEGV when debuging for cache enabled.
* agent/cache.c (agent_get_cache): Avoid dereferencing NULL.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/cache.c')
-rw-r--r-- | agent/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/cache.c b/agent/cache.c index 20a604006..7616dafc1 100644 --- a/agent/cache.c +++ b/agent/cache.c @@ -476,7 +476,7 @@ agent_get_cache (ctrl_t ctrl, const char *key, cache_mode_t cache_mode) if (DBG_CACHE) log_debug ("agent_get_cache '%s'.%d (mode %d)%s ...\n", - key, ctrl->restricted, cache_mode, + key, restricted, cache_mode, last_stored? " (stored cache key)":""); housekeeping (); |