diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index d96f541101cb..b1b687e13d74 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -963,8 +963,8 @@ int TCPNameserver::doIXFR(shared_ptr q, int outsock) sendPacket(outpacket,outsock); return 0; } - } else if (rr->d_type != QType::TSIG) { - L<d_type != QType::TSIG && rr->d_type != QType::OPT) { + L<d_type).getName()<setRcode(RCode::FormErr); sendPacket(outpacket,outsock); return 0;