Commit 4651cc62 authored by Uladzimir Trehubenka's avatar Uladzimir Trehubenka Committed by Miek Gieben

plugin/forward: fixed debug dump output on FORMERR (#2576)

parent 6d218920
...@@ -143,7 +143,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg ...@@ -143,7 +143,7 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
// Check if the reply is correct; if not return FormErr. // Check if the reply is correct; if not return FormErr.
if !state.Match(ret) { if !state.Match(ret) {
debug.Hexdumpf(ret, "Wrong reply for id: %d, %s/%d", state.QName(), state.QType()) debug.Hexdumpf(ret, "Wrong reply for id: %d, %s %d", ret.Id, state.QName(), state.QType())
formerr := state.ErrorMessage(dns.RcodeFormatError) formerr := state.ErrorMessage(dns.RcodeFormatError)
w.WriteMsg(formerr) w.WriteMsg(formerr)
......
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