From: Remi Gacogne Date: Sat, 30 Apr 2022 14:39:54 +0000 (+0200) Subject: dnsdist: Remove dead code in the console X-Git-Tag: auth-4.8.0-alpha0~114^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11596%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Remove dead code in the console Reported by Coverity as CID 378254. --- diff --git a/pdns/dnsdist-console.cc b/pdns/dnsdist-console.cc index 2058e804d2..998af98d40 100644 --- a/pdns/dnsdist-console.cc +++ b/pdns/dnsdist-console.cc @@ -252,10 +252,6 @@ void doClient(ComboAddress server, const std::string& command) else if (commandResult == ConsoleCommandResult::TooLarge) { return; } - else if (commandResult == ConsoleCommandResult::TooLarge) { - close(fd); - return; - } if (!command.empty()) { sendMessageToServer(fd.getHandle(), command, readingNonce, writingNonce, false);