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:
parent
af9fa21a70
commit
6ac0406464
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user