]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Remove dead code in the console 11596/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 30 Apr 2022 14:39:54 +0000 (16:39 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Sat, 30 Apr 2022 14:39:54 +0000 (16:39 +0200)
Reported by Coverity as CID 378254.

pdns/dnsdist-console.cc

index 2058e804d2456396fb518423935e0ae68f4e6caf..998af98d4016c7f42beeecf8f99ebd2e92a184c9 100644 (file)
@@ -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);