diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-03-08 22:23:47 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-03-14 01:15:21 +0000 |
commit | f5edf2b6fb20722bb63c8855793bc2552721748c (patch) | |
tree | dbb65ecf31a9fe6934befbca160c4cc6a0ddddf7 /src/network/socket/qnativesocketengine_unix.cpp | |
parent | bc59424ed496f298fb7ebb4ed0d946e85aae12a7 (diff) |
IPv6 scope IDs are unsigned
We need to make sure that a large scope ID saved in a QString does get
converted properly back to an integer.
Change-Id: Iee8cbc07c4434ce9b560ffff13c9bd0e9008bd9c
Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/network/socket/qnativesocketengine_unix.cpp')
-rw-r--r-- | src/network/socket/qnativesocketengine_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp index fe7864d7f3..e7056ad250 100644 --- a/src/network/socket/qnativesocketengine_unix.cpp +++ b/src/network/socket/qnativesocketengine_unix.cpp @@ -134,7 +134,7 @@ static inline uint makeScopeId(const QHostAddress &addr) return 0; bool ok; - uint id = scopeid.toInt(&ok); + uint id = scopeid.toUInt(&ok); #ifndef QT_NO_IPV6IFNAME if (!ok) id = ::if_nametoindex(scopeid.toLatin1()); |