From 40920298b1342affae194d77b229dc0a335a90a6 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 9 Nov 2017 12:01:32 +0100 Subject: [PATCH] Check return of getTSIGKey and B64Decode in the Slave Communicator --- pdns/slavecommunicator.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 2ba523240..4b6da4dbf 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -788,8 +788,14 @@ void CommunicatorClass::slaveRefresh(PacketHandler *P) if(dk.getTSIGForAccess(di.zone, sr.master, &dni.tsigkeyname)) { string secret64; - B->getTSIGKey(dni.tsigkeyname, &dni.tsigalgname, &secret64); - B64Decode(secret64, dni.tsigsecret); + if(!B->getTSIGKey(dni.tsigkeyname, &dni.tsigalgname, &secret64)) { + L<