Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
3152d44c
Commit
3152d44c
authored
Aug 03, 2006
by
Roger Dingledine
Browse files
fix a seg fault on exit for clients; and fix a comment.
svn:r6969
parent
b2c42635
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/dns.c
View file @
3152d44c
...
...
@@ -91,8 +91,7 @@ typedef struct cached_resolve_t {
uint32_t
magic
;
char
address
[
MAX_ADDRESSLEN
];
/**< The hostname to be resolved. */
uint32_t
addr
;
/**< IPv4 addr for <b>address</b>. */
uint8_t
state
;
/**< 0 is pending; 1 means answer is valid; 2 means resolve
* failed. */
uint8_t
state
;
/**< Is this cached entry pending/done/valid/failed? */
time_t
expire
;
/**< Remove items from cache after this time. */
uint32_t
ttl
;
/**< What TTL did the nameserver tell us? */
pending_connection_t
*
pending_connections
;
...
...
@@ -264,7 +263,8 @@ dns_free_all(void)
_free_cached_resolve
(
item
);
}
HT_CLEAR
(
cache_map
,
&
cache_root
);
smartlist_free
(
cached_resolve_pqueue
);
if
(
cached_resolve_pqueue
)
smartlist_free
(
cached_resolve_pqueue
);
cached_resolve_pqueue
=
NULL
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment