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

This commit is contained in:
Nick Mathewson 2011-06-14 13:46:10 -04:00
commit a25c0a5bf8
2 changed files with 6 additions and 2 deletions

4
changes/bug3369 Normal file
View File

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

View File

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