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
ZerXes
Tor
Commits
737760f0
Commit
737760f0
authored
Oct 13, 2003
by
Roger Dingledine
Browse files
fix segfault (connecting to dirserver when network is down)
svn:r580
parent
411a18e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/or/connection_edge.c
View file @
737760f0
...
...
@@ -577,7 +577,7 @@ static int connection_ap_handshake_socks_reply(connection_t *conn, char *reply,
return
0
;
/* else fall through */
case
-
1
:
/* resolve failed */
log_fn
(
LOG_WARN
,
"
Couldn't queue resolve request."
);
log_fn
(
LOG_WARN
,
"
Resolve or connect failed (%s)."
,
conn
->
address
);
connection_remove
(
n_stream
);
connection_free
(
n_stream
);
case
0
:
/* resolve added to pending list */
...
...
src/or/directory.c
View file @
737760f0
...
...
@@ -63,6 +63,7 @@ void directory_initiate_command(routerinfo_t *router, int command) {
switch
(
connection_connect
(
conn
,
router
->
address
,
router
->
addr
,
router
->
dir_port
))
{
case
-
1
:
router_mark_as_down
(
conn
->
nickname
);
/* don't try him again */
connection_remove
(
conn
);
connection_free
(
conn
);
return
;
case
0
:
...
...
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