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>
This commit is contained in:
Thiago Macieira 2023-05-11 10:21:15 -07:00
parent af9fa21a70
commit 6ac0406464
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;