diff options
author | David Goulet <dgoulet@torproject.org> | 2024-10-21 12:03:54 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2024-10-21 12:03:54 -0400 |
commit | 26c069089b3ec5a0f278e5922b643de455f36af0 (patch) | |
tree | b808f48bded8151fc53e89a6c5d46705a61bf87f /src/feature/client | |
parent | 8f43b97895c2fb3179a83b4535c5fc2a97d75998 (diff) | |
download | tor-26c069089b3ec5a0f278e5922b643de455f36af0.tar.gz tor-26c069089b3ec5a0f278e5922b643de455f36af0.zip |
Revert "Handle empty DNS reply without error as NOERROR"
Closes #40984
This reverts commit 3d2f7c3467e7aff545d8e22ffd4153d7598c6d7c.
Diffstat (limited to 'src/feature/client')
-rw-r--r-- | src/feature/client/dnsserv.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/feature/client/dnsserv.c b/src/feature/client/dnsserv.c index 237a6ee3d3..f0bb0af100 100644 --- a/src/feature/client/dnsserv.c +++ b/src/feature/client/dnsserv.c @@ -319,7 +319,6 @@ evdns_get_orig_address(const struct evdns_server_request *req, break; case RESOLVED_TYPE_ERROR: case RESOLVED_TYPE_ERROR_TRANSIENT: - case RESOLVED_TYPE_NOERROR: /* Addr doesn't matter, since we're not sending it back in the reply.*/ return addr; default: @@ -380,8 +379,6 @@ dnsserv_resolved(entry_connection_t *conn, tor_free(ans); } else if (answer_type == RESOLVED_TYPE_ERROR) { err = DNS_ERR_NOTEXIST; - } else if (answer_type == RESOLVED_TYPE_NOERROR) { - err = DNS_ERR_NONE; } else { /* answer_type == RESOLVED_TYPE_ERROR_TRANSIENT */ err = DNS_ERR_SERVERFAILED; } |