]> granicus.if.org Git - pdns/commitdiff
auth: Fix 'Identical code for different branches' coverity defect
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 15 Sep 2016 09:12:41 +0000 (11:12 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 15 Sep 2016 09:12:41 +0000 (11:12 +0200)
pdns/tcpreceiver.cc

index 6a7cd9d0b3db78e2229b74b924e0387460e694e3..767fda8cbac16841fa6083c9d1899d21692dec64 100644 (file)
@@ -757,10 +757,7 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr<DNSPacket> q, int ou
         }
         for(const auto& ip: ips) {
           zrr.dr.d_type = ip.dr.d_type;
-          if(ip.dr.d_type == QType::A)
-            zrr.dr.d_content = ip.dr.d_content;
-          else
-            zrr.dr.d_content = ip.dr.d_content;
+          zrr.dr.d_content = ip.dr.d_content;
           zrrs.push_back(zrr);
         }
       }