From 0438fd8926638e38dbea5a34aa4ef52ec0bb3302 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 15 Sep 2016 11:12:41 +0200 Subject: [PATCH] auth: Fix 'Identical code for different branches' coverity defect --- pdns/tcpreceiver.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index 6a7cd9d0b..767fda8cb 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -757,10 +757,7 @@ int TCPNameserver::doAXFR(const DNSName &target, shared_ptr 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); } } -- 2.40.0