mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Add a missing ntohl to tell_controller_about_resolve_result
Fix for bug 5723; bugfix on 0.2.3.1-alpha (commit 22f723e4
)
This commit is contained in:
parent
81d9a9368f
commit
c9afd6f9c5
4
changes/bug5723
Normal file
4
changes/bug5723
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes:
|
||||||
|
- Format IPv4 addresses correctly in ADDRMAP events. (Previously,
|
||||||
|
we had reversed them when the answer was cached.) Fixes bug
|
||||||
|
5723; bugfix on 0.2.3.1-alpha.
|
@ -2745,7 +2745,7 @@ tell_controller_about_resolved_result(entry_connection_t *conn,
|
|||||||
answer_type == RESOLVED_TYPE_HOSTNAME)) {
|
answer_type == RESOLVED_TYPE_HOSTNAME)) {
|
||||||
return; /* we already told the controller. */
|
return; /* we already told the controller. */
|
||||||
} else if (answer_type == RESOLVED_TYPE_IPV4 && answer_len >= 4) {
|
} else if (answer_type == RESOLVED_TYPE_IPV4 && answer_len >= 4) {
|
||||||
char *cp = tor_dup_ip(get_uint32(answer));
|
char *cp = tor_dup_ip(ntohl(get_uint32(answer)));
|
||||||
control_event_address_mapped(conn->socks_request->address,
|
control_event_address_mapped(conn->socks_request->address,
|
||||||
cp, expires, NULL);
|
cp, expires, NULL);
|
||||||
tor_free(cp);
|
tor_free(cp);
|
||||||
|
Loading…
Reference in New Issue
Block a user