summaryrefslogtreecommitdiffstats
path: root/src/network/access/http2/hpacktable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/access/http2/hpacktable.cpp')
-rw-r--r--src/network/access/http2/hpacktable.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/network/access/http2/hpacktable.cpp b/src/network/access/http2/hpacktable.cpp
index db9574e2bc..a90ee72d52 100644
--- a/src/network/access/http2/hpacktable.cpp
+++ b/src/network/access/http2/hpacktable.cpp
@@ -64,8 +64,6 @@ HeaderSize entry_size(const QByteArray &name, const QByteArray &value)
const unsigned sum = unsigned(name.size()) + value.size();
if (std::numeric_limits<unsigned>::max() - 32 < sum)
return HeaderSize();
- if (sum + 32 > std::numeric_limits<quint32>::max())
- return HeaderSize();
return HeaderSize(true, quint32(sum + 32));
}