diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/access/http2/hpacktable.cpp | 2 | ||||
-rw-r--r-- | src/network/kernel/qhostaddress.cpp | 2 | ||||
-rw-r--r-- | src/network/ssl/qsslconfiguration.cpp | 2 |
3 files changed, 2 insertions, 4 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)); } diff --git a/src/network/kernel/qhostaddress.cpp b/src/network/kernel/qhostaddress.cpp index 63056a525b..27b5f570dc 100644 --- a/src/network/kernel/qhostaddress.cpp +++ b/src/network/kernel/qhostaddress.cpp @@ -260,7 +260,7 @@ bool QNetmask::setAddress(const QHostAddress &address) int netmask = 0; quint8 *ptr = ip.v6; quint8 *end; - length = -1; + length = 255; if (address.protocol() == QAbstractSocket::IPv4Protocol) { ip.v4 = qToBigEndian(address.toIPv4Address()); diff --git a/src/network/ssl/qsslconfiguration.cpp b/src/network/ssl/qsslconfiguration.cpp index 290a7898f5..e03b89f58e 100644 --- a/src/network/ssl/qsslconfiguration.cpp +++ b/src/network/ssl/qsslconfiguration.cpp @@ -1026,7 +1026,7 @@ void QSslConfiguration::setDtlsCookieVerificationEnabled(bool enable) \list \li no local certificate and no private key - \li protocol SecureProtocols (meaning either TLS 1.0 or SSL 3 will be used) + \li protocol \l{QSsl::SecureProtocols}{SecureProtocols} \li the system's default CA certificate list \li the cipher list equal to the list of the SSL libraries' supported SSL ciphers that are 128 bits or more |