From: Pieter Lexis Date: Thu, 9 Nov 2017 11:01:32 +0000 (+0100) Subject: Check return of getTSIGKey and B64Decode in the Slave Communicator X-Git-Tag: auth-4.1.0-rc3~3^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40920298b1342affae194d77b229dc0a335a90a6;p=pdns Check return of getTSIGKey and B64Decode in the Slave Communicator --- 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<