diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-07-01 18:24:40 -0700 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-20 05:08:08 +0200 |
commit | 9063119268821a5ea5c1fec0156efa72b84752c6 (patch) | |
tree | d2e4a9635f80557b043882957b5cec5dfcaecca0 /src/network/kernel/qhostaddress.cpp | |
parent | 4b3acf5aff76344aab4584b5c54b74d189b19246 (diff) |
Make QIPAddress::parseIp6 return the first bad character
In case of undetermined error, returns end.
Change-Id: Ic5d16bab5fc56ad24f19da25f73f9b844ce11d3f
Reviewed-by: David Faure (KDE) <faure@kde.org>
Diffstat (limited to 'src/network/kernel/qhostaddress.cpp')
-rw-r--r-- | src/network/kernel/qhostaddress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qhostaddress.cpp b/src/network/kernel/qhostaddress.cpp index dc67b0d835..5ef428305c 100644 --- a/src/network/kernel/qhostaddress.cpp +++ b/src/network/kernel/qhostaddress.cpp @@ -189,7 +189,7 @@ static bool parseIp6(const QString &address, QIPAddressUtils::IPv6Address &addr, } else { scopeId->clear(); } - return QIPAddressUtils::parseIp6(addr, tmp.constBegin(), tmp.constEnd()); + return QIPAddressUtils::parseIp6(addr, tmp.constBegin(), tmp.constEnd()) == 0; } bool QHostAddressPrivate::parse() |