diff --git a/changes/bug2332 b/changes/bug2332 new file mode 100644 index 0000000000..5f73ddd7af --- /dev/null +++ b/changes/bug2332 @@ -0,0 +1,4 @@ + o Minor bugfixes + - Fix a bug with handling misformed replies to reverse DNS lookup + requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a bug + reported by doorss. diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index 579080be3e..57c449311f 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -275,7 +275,7 @@ dnsserv_resolved(edge_connection_t *conn, char *ans = tor_strndup(answer, answer_len); evdns_server_request_add_ptr_reply(req, NULL, name, - (char*)answer, ttl); + ans, ttl); tor_free(ans); } else if (answer_type == RESOLVED_TYPE_ERROR) { err = DNS_ERR_NOTEXIST;