diff options
Diffstat (limited to 'src/network/access')
-rw-r--r-- | src/network/access/qhttpnetworkconnection.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp index 3a5ce9c6c9..72abbb1521 100644 --- a/src/network/access/qhttpnetworkconnection.cpp +++ b/src/network/access/qhttpnetworkconnection.cpp @@ -1440,7 +1440,9 @@ void QHttpNetworkConnection::ignoreSslErrors(int channel) return; if (channel == -1) { // ignore for all channels - for (int i = 0; i < d->activeChannelCount; ++i) { + // We need to ignore for all channels, even the ones that are not in use just in case they + // will be in the future. + for (int i = 0; i < d->channelCount; ++i) { d->channels[i].ignoreSslErrors(); } @@ -1456,7 +1458,9 @@ void QHttpNetworkConnection::ignoreSslErrors(const QList<QSslError> &errors, int return; if (channel == -1) { // ignore for all channels - for (int i = 0; i < d->activeChannelCount; ++i) { + // We need to ignore for all channels, even the ones that are not in use just in case they + // will be in the future. + for (int i = 0; i < d->channelCount; ++i) { d->channels[i].ignoreSslErrors(errors); } |