mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
fix the function comment
svn:r1169
This commit is contained in:
parent
0a673f4491
commit
5701cc2359
@ -191,7 +191,6 @@ static int assign_to_dnsworker(connection_t *exitconn) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void connection_dns_remove(connection_t *conn)
|
void connection_dns_remove(connection_t *conn)
|
||||||
{
|
{
|
||||||
struct pending_connection_t *pend, *victim;
|
struct pending_connection_t *pend, *victim;
|
||||||
@ -233,9 +232,8 @@ void connection_dns_remove(connection_t *conn)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If onlyconn is NULL, cancel all pending connections. If onlyconn is
|
/* Cancel all pending connections. Then cancel the resolve itself,
|
||||||
* defined, then remove onlyconn from the pending list. Does not cancel the
|
* and remove the 'struct cached_resolve' from the cache.
|
||||||
* resolve itself, or remove the 'struct cached_resolve' from the cache.
|
|
||||||
*/
|
*/
|
||||||
void dns_cancel_pending_resolve(char *address) {
|
void dns_cancel_pending_resolve(char *address) {
|
||||||
struct pending_connection_t *pend;
|
struct pending_connection_t *pend;
|
||||||
@ -284,7 +282,6 @@ void dns_cancel_pending_resolve(char *address) {
|
|||||||
SPLAY_REMOVE(cache_tree, &cache_root, resolve);
|
SPLAY_REMOVE(cache_tree, &cache_root, resolve);
|
||||||
|
|
||||||
free(resolve);
|
free(resolve);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dns_found_answer(char *address, uint32_t addr) {
|
static void dns_found_answer(char *address, uint32_t addr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user