From: Aki Tuomi Date: Fri, 12 Jul 2019 09:34:45 +0000 (+0300) Subject: packethandler: Compare TSIG key name using DNSName X-Git-Tag: dnsdist-1.4.0-rc1~42^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6da24c839a957f0f9866d8025a6bf35256b2e451;p=pdns packethandler: Compare TSIG key name using DNSName Fixes #8070 --- 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)"<