diff options
author | Niels Provos <provos@gmail.com> | 2007-01-27 08:38:51 +0000 |
---|---|---|
committer | Niels Provos <provos@gmail.com> | 2007-01-27 08:38:51 +0000 |
commit | 121efe6530075e1e0d64956cd5b00600218407a6 (patch) | |
tree | 5a7878bdbbccf5f6ff761fbee475cabb750c9c14 /evdns.c | |
parent | 78f2aa300c941029c7cf808755df9b1e7007fc05 (diff) | |
download | libevent-121efe6530075e1e0d64956cd5b00600218407a6.tar.gz |
small bug fixes to AAAA resolution and regression test; from Nick Mathewson!
we love regresson tests.
svn:r319
Diffstat (limited to 'evdns.c')
-rw-r--r-- | evdns.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -596,6 +596,7 @@ reply_callback(struct request *const req, u32 ttl, u32 err, struct reply *reply) req->user_pointer); else req->user_callback(err, 0, 0, 0, NULL, req->user_pointer); + return; } assert(0); } @@ -1783,7 +1784,7 @@ search_make_new(const struct search_state *const state, int n, const char *const static int 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) && global_search_state && global_search_state->num_domains) { |