diff options
author | 2020-02-15 13:11:19 -0800 | |
---|---|---|
committer | 2020-02-15 22:11:19 +0100 | |
commit | 1da96807ec2f3c8023a638c56ee8d42aaabbdaec (patch) | |
tree | 4a8df3867c662e08ad2c95ca070ae4f6e8e12bb8 /plugin | |
parent | e148948ca9ab446b0fee8edf367b82d502983807 (diff) | |
download | coredns-1da96807ec2f3c8023a638c56ee8d42aaabbdaec.tar.gz coredns-1da96807ec2f3c8023a638c56ee8d42aaabbdaec.tar.zst coredns-1da96807ec2f3c8023a638c56ee8d42aaabbdaec.zip |
plugin/template: fix panic when missing next handler (#3672)
Signed-off-by: Andy Bursavich <abursavich@gmail.com>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/template/template.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/template/template.go b/plugin/template/template.go index f2a7b186f..4940dc9f4 100644 --- a/plugin/template/template.go +++ b/plugin/template/template.go @@ -122,7 +122,7 @@ func (h Handler) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) 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. |