Commit 1da96807 authored by Andy Bursavich's avatar Andy Bursavich Committed by GitHub

plugin/template: fix panic when missing next handler (#3672)

Signed-off-by: default avatarAndy Bursavich <abursavich@gmail.com>
parent e148948c
...@@ -122,7 +122,7 @@ func (h Handler) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) ...@@ -122,7 +122,7 @@ func (h Handler) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
return template.rcode, nil return template.rcode, nil
} }
return h.Next.ServeDNS(ctx, w, r) return plugin.NextOrFailure(h.Name(), h.Next, ctx, w, r)
} }
// Name implements the plugin.Handler interface. // Name implements the plugin.Handler interface.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment