]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Do not retrieve message details for TSIG
authorRuben d'Arco <cyclops@prof-x.net>
Sun, 24 Aug 2014 16:31:49 +0000 (18:31 +0200)
committerRuben d'Arco <cyclops@prof-x.net>
Wed, 27 Aug 2014 08:17:43 +0000 (10:17 +0200)
Small optimization.

pdns/rfc2136handler.cc

index 1baf9dda342c117875046057dac84b634d6dff91..609ebe07a64f4ab9dfb7daade721e4a92b24cea7 100644 (file)
@@ -693,7 +693,7 @@ int PacketHandler::processUpdate(DNSPacket *p) {
 
     TSIGRecordContent trc;
     string inputkey, message;
-    if (! p->getTSIGDetails(&trc,  &inputkey, &message)) {
+    if (! p->getTSIGDetails(&trc,  &inputkey, 0)) {
       L<<Logger::Error<<msgPrefix<<"TSIG key required, but packet does not contain key. Sending REFUSED"<<endl;
       return RCode::Refused;
     }