]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Merge pull request #11596 from rgacogne/ddist-console-redundant-code
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 2 May 2022 07:47:55 +0000 (09:47 +0200)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 07:47:55 +0000 (09:47 +0200)
dnsdist: Remove dead code in the console

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);