From aca9e74fc63cc85dd21921c12b84a9c7d40c11c2 Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Wed, 16 Mar 2022 12:52:46 +0100 Subject: [PATCH] Cleanup: uint16_t port value cannot be larger than 65535 --- pdns/misc.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/pdns/misc.cc b/pdns/misc.cc index 2dc3c9f659..b14a7616ef 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -748,9 +748,6 @@ int makeIPv6sockaddr(const std::string& addr, struct sockaddr_in6* ret) } if(portSet) { - if(port > 65535) - return -1; - ret->sin6_port = htons(port); } -- 2.47.2