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

This commit is contained in:
Uladzimir Trehubenka 2019-02-18 10:12:14 +03:00 committed by Miek Gieben
parent 6d2189201e
commit 4651cc621d

View file

@ -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)