From: Fred Morcos Date: Tue, 15 Mar 2022 08:54:45 +0000 (+0100) Subject: Port values should always be uint16_t X-Git-Tag: rec-4.7.0-beta1~56^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11401%2Fhead;p=thirdparty%2Fpdns.git Port values should always be uint16_t --- diff --git a/pdns/misc.cc b/pdns/misc.cc index 38a30eaae2..cd8062ad8f 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -683,7 +683,7 @@ int makeIPv6sockaddr(const std::string& addr, struct sockaddr_in6* ret) return -1; string ourAddr(addr); bool portSet = false; - unsigned int port; + uint16_t port; if(addr[0]=='[') { // [::]:53 style address string::size_type pos = addr.find(']'); if(pos == string::npos)