Browse Source

Merge remote-tracking branch 'public/bug3369' into maint-0.2.2

Nick Mathewson 14 years ago
parent
commit
a25c0a5bf8
2 changed files with 6 additions and 2 deletions
  1. 4 0
      changes/bug3369
  2. 2 2
      src/or/dnsserv.c

+ 4 - 0
changes/bug3369

@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - When asked about a DNS record type we don't support via a
+      client DNSPort, reply with NOTIMPL rather than an empty
+      reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.

+ 2 - 2
src/or/dnsserv.c

@@ -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) {