mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
r11548@catbus: nickm | 2007-01-27 00:15:47 -0500
Fix two assert bugs encountered when trying ipv6 lookups with eventdns code. svn:r9430
This commit is contained in:
parent
c66fbb002f
commit
152547be49
@ -41,7 +41,7 @@ Changes in version 0.1.2.7-alpha - 2007-01-26
|
|||||||
an incorrect number of bytes. (Previously, we would ignore the
|
an incorrect number of bytes. (Previously, we would ignore the
|
||||||
extra bytes.)
|
extra bytes.)
|
||||||
- Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
|
- Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
|
||||||
in the correct order.
|
in the correct order, and doesn't crash.
|
||||||
- Free memory held in recently-completed DNS lookup attempts on exit.
|
- Free memory held in recently-completed DNS lookup attempts on exit.
|
||||||
This was not a memory leak, but may have been hiding memory leaks.
|
This was not a memory leak, but may have been hiding memory leaks.
|
||||||
- Don't launch requests for descriptors unless we have networkstatuses
|
- Don't launch requests for descriptors unless we have networkstatuses
|
||||||
|
@ -669,6 +669,7 @@ reply_callback(struct request *const req, u32 ttl, u32 err, struct reply *reply)
|
|||||||
req->user_pointer);
|
req->user_pointer);
|
||||||
else
|
else
|
||||||
req->user_callback(err, 0, 0, 0, NULL, req->user_pointer);
|
req->user_callback(err, 0, 0, 0, NULL, req->user_pointer);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
assert(0);
|
assert(0);
|
||||||
}
|
}
|
||||||
@ -2416,7 +2417,7 @@ search_make_new(const struct search_state *const state, int n, const char *const
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
search_request_new(int type, const char *const name, int flags, evdns_callback_type user_callback, void *user_arg) {
|
search_request_new(int type, const char *const name, int flags, evdns_callback_type user_callback, void *user_arg) {
|
||||||
assert(type == TYPE_A);
|
assert(type == TYPE_A || type == TYPE_AAAA);
|
||||||
if ( ((flags & DNS_QUERY_NO_SEARCH) == 0) &&
|
if ( ((flags & DNS_QUERY_NO_SEARCH) == 0) &&
|
||||||
global_search_state &&
|
global_search_state &&
|
||||||
global_search_state->num_domains) {
|
global_search_state->num_domains) {
|
||||||
|
Loading…
Reference in New Issue
Block a user