diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2023-05-11 10:21:15 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-05-11 17:05:27 -0700 |
commit | 6ac04064649c69824ceec91bb4161d1475238ea0 (patch) | |
tree | 7b8d10d0c3997c8487318b20739a3034ed64a41d /src/network | |
parent | af9fa21a70c485accd152995f47cfafb0d0341d4 (diff) | |
download | qtbase-6ac04064649c69824ceec91bb4161d1475238ea0.tar.gz |
QDnsLookup: treat NOTIMP replies as server failures
"Not implemented" is not "invalid reply".
Pick-to: 6.5
Change-Id: I3e3bfef633af4130a03afffd175e2687e7585f36
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/kernel/qdnslookup_unix.cpp | 1 | ||||
-rw-r--r-- | src/network/kernel/qdnslookup_win.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/network/kernel/qdnslookup_unix.cpp b/src/network/kernel/qdnslookup_unix.cpp index 05e0663aef..bb1c4feb95 100644 --- a/src/network/kernel/qdnslookup_unix.cpp +++ b/src/network/kernel/qdnslookup_unix.cpp @@ -107,6 +107,7 @@ void QDnsLookupRunnable::query(const int requestType, const QByteArray &requestN reply->errorString = tr("Server could not process query"); return; case SERVFAIL: + case NOTIMP: reply->error = QDnsLookup::ServerFailureError; reply->errorString = tr("Server failure"); return; diff --git a/src/network/kernel/qdnslookup_win.cpp b/src/network/kernel/qdnslookup_win.cpp index 564966e395..796ff9c206 100644 --- a/src/network/kernel/qdnslookup_win.cpp +++ b/src/network/kernel/qdnslookup_win.cpp @@ -44,6 +44,7 @@ void QDnsLookupRunnable::query(const int requestType, const QByteArray &requestN reply->errorString = tr("Server could not process query"); return; case DNS_ERROR_RCODE_SERVER_FAILURE: + case DNS_ERROR_RCODE_NOT_IMPLEMENTED: reply->error = QDnsLookup::ServerFailureError; reply->errorString = tr("Server failure"); return; |