From bd051ad662f10373bb8f3e13a55cbec3f6ebc91c Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 24 Feb 2016 18:14:31 +0100 Subject: [PATCH] recursor: set the TSIG algoname on IXFR correctly --- pdns/ixfr.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pdns/ixfr.cc b/pdns/ixfr.cc index ad4ef2d6d..2170a7045 100644 --- a/pdns/ixfr.cc +++ b/pdns/ixfr.cc @@ -19,8 +19,14 @@ vector, vector > > getIXFRDeltas(const ComboAd pw.commit(); if(!tt.algo.empty()) { + TSIGHashEnum the; + getTSIGHashEnum(tt.algo, the); TSIGRecordContent trc; - trc.d_algoName = tt.algo; + try { + trc.d_algoName = getTSIGAlgoName(the); + } catch(PDNSException& pe) { + throw std::runtime_error("TSIG algorithm '"+tt.algo.toString()+"' is unknown."); + } trc.d_time = time((time_t*)NULL); trc.d_fudge = 300; trc.d_origID=ntohs(pw.getHeader()->id); -- 2.50.0