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
d977677a
Commit
d977677a
authored
Sep 21, 2004
by
Roger Dingledine
Browse files
bugfix: when a resolve fails for a begin request, actually send
the end cell back. also, give a better reason for failure. svn:r2358
parent
ff622786
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/dns.c
View file @
d977677a
...
...
@@ -495,10 +495,9 @@ static void dns_found_answer(char *address, uint32_t addr, char outcome) {
/* prevent double-remove. */
pendconn
->
state
=
EXIT_CONN_STATE_RESOLVEFAILED
;
if
(
pendconn
->
purpose
==
EXIT_PURPOSE_CONNECT
)
{
/*XXXX can we safely raise the detach here to happen after we
*
send the end cell
?
*/
connection_edge_end
(
pendconn
,
END_STREAM_REASON_RESOLVEFAILED
,
pendconn
->
cpath_layer
);
/* This detach must happen after we
send the end cell
.
*/
circuit_detach_stream
(
circuit_get_by_conn
(
pendconn
),
pendconn
);
connection_edge_end
(
pendconn
,
END_STREAM_REASON_MISC
,
pendconn
->
cpath_layer
);
}
else
{
send_resolved_cell
(
pendconn
,
RESOLVED_TYPE_ERROR
);
/* This detach must happen after we send the resolved cell. */
...
...
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