From: Fred Morcos Date: Wed, 16 Mar 2022 11:52:46 +0000 (+0100) Subject: Cleanup: uint16_t port value cannot be larger than 65535 X-Git-Tag: rec-4.7.0-beta1~51^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aca9e74fc63cc85dd21921c12b84a9c7d40c11c2;p=thirdparty%2Fpdns.git Cleanup: uint16_t port value cannot be larger than 65535 --- 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); }