From b60c7280671a8061b60c729e8be701c28dc762b3 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 10 Jan 2018 19:23:24 +0100 Subject: [PATCH] If computeCacheKey ever returns an error, bubble it up --- dnscrypt-proxy/plugins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnscrypt-proxy/plugins.go b/dnscrypt-proxy/plugins.go index 0bdf6b16..29475fad 100644 --- a/dnscrypt-proxy/plugins.go +++ b/dnscrypt-proxy/plugins.go @@ -216,7 +216,7 @@ func (plugin *PluginCacheResponse) Eval(pluginsState *PluginsState, msg *dns.Msg } cacheKey, err := computeCacheKey(pluginsState, msg) if err != nil { - return nil + return err } ttl := getMinTTL(msg, 60, 86400, 60) cachedResponse := CachedResponse{