From 33cb1655f1b7c597d1ebdcb38447648477e6ac9f Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 9 Oct 2020 12:02:07 +0900 Subject: [PATCH] agent: Fix SEGV when debuging for cache enabled. * agent/cache.c (agent_get_cache): Avoid dereferencing NULL. Signed-off-by: NIIBE Yutaka --- agent/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ();