If computeCacheKey ever returns an error, bubble it up

This commit is contained in:
Frank Denis 2018-01-10 19:23:24 +01:00
parent 132add7955
commit b60c728067
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ func (plugin *PluginCacheResponse) Eval(pluginsState *PluginsState, msg *dns.Msg
} }
cacheKey, err := computeCacheKey(pluginsState, msg) cacheKey, err := computeCacheKey(pluginsState, msg)
if err != nil { if err != nil {
return nil return err
} }
ttl := getMinTTL(msg, 60, 86400, 60) ttl := getMinTTL(msg, 60, 86400, 60)
cachedResponse := CachedResponse{ cachedResponse := CachedResponse{