From 27790efdd52d3bd5644603a307321f4dc76dfa6b Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Sat, 30 Apr 2022 16:39:54 +0200 Subject: [PATCH] dnsdist: Remove dead code in the console Reported by Coverity as CID 378254. --- pdns/dnsdist-console.cc | 4 ---- 1 file changed, 4 deletions(-) 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); -- 2.47.2