]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
client-side DNS proxy server: reply NOTIMPL to unsupported queries
authorintrigeri <intrigeri@boum.org>
Sun, 12 Jun 2011 09:57:31 +0000 (11:57 +0200)
committerNick Mathewson <nickm@torproject.org>
Mon, 13 Jun 2011 17:37:45 +0000 (13:37 -0400)
Fix for bug 3369.

src/or/dnsserv.c

index 009ab5f34482e5cc30aa1bbfe9dadbf8d53f28f9..f2c473dfc5a2509c08a5d5524324f0c0bbb8d1a8 100644 (file)
@@ -95,8 +95,8 @@ evdns_server_callback(struct evdns_server_request *req, void *_data)
   }
   if (!q) {
     log_info(LD_APP, "None of the questions we got were ones we're willing "
-             "to support. Sending NODATA.");
-    evdns_server_request_respond(req, DNS_ERR_NONE);
+             "to support. Sending NOTIMPL.");
+    evdns_server_request_respond(req, DNS_ERR_NOTIMPL);
     return;
   }
   if (q->type != EVDNS_TYPE_A) {