From 6da24c839a957f0f9866d8025a6bf35256b2e451 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Fri, 12 Jul 2019 12:34:45 +0300 Subject: [PATCH] packethandler: Compare TSIG key name using DNSName Fixes #8070 --- pdns/packethandler.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index fc15f5aad..0b60e8144 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -873,8 +873,9 @@ int PacketHandler::processNotify(DNSPacket *p) } vector meta; if (B.getDomainMetadata(p->qdomain,"AXFR-MASTER-TSIG",meta) && meta.size() > 0) { - if (!pdns_iequals(meta[0], p->getTSIGKeyname().toStringNoDot())) { - g_log<qdomain<<" from "<getRemote()<<": expected TSIG key '"<getTSIGKeyname()<<"' (Refused)"<getTSIGKeyname() != expected) { + g_log<qdomain<<" from "<getRemote()<<": expected TSIG key '"<getTSIGKeyname()<<"' (Refused)"<