summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-01-06 12:27:40 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-01-08 12:41:06 +0100
commit4724d017ef2ff84e71fac3d0d04bd25373140c09 (patch)
tree6ea33244bd072f1ca193740baac63d21a2159053 /src/network
parentc9c598d4d76b703f84ace9d2d06b099e8bcf2b07 (diff)
Minor tidy-up: two sizetype fixes, two \nullptr uses
Change-Id: I6c4a1296350ecaf9a661dba22670fbb2ad23bd77 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/kernel/qauthenticator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp
index c433b700ea..a8777962ee 100644
--- a/src/network/kernel/qauthenticator.cpp
+++ b/src/network/kernel/qauthenticator.cpp
@@ -1442,7 +1442,7 @@ static bool qNtlmDecodePhase2(const QByteArray& data, QNtlmPhase2Block& ch)
ds >> ch.targetInfo;
if (ch.targetName.len > 0) {
- if (ch.targetName.len + ch.targetName.offset > (unsigned)data.size())
+ if (qsizetype(ch.targetName.len + ch.targetName.offset) > data.size())
return false;
ch.targetNameStr = qStringFromUcs2Le(data.mid(ch.targetName.offset, ch.targetName.len));