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
25d5425f
Commit
25d5425f
authored
Apr 28, 2004
by
Roger Dingledine
Browse files
fix a bug in dns.c, note but don't fix another one
svn:r1735
parent
ac622d94
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/or/connection_edge.c
View file @
25d5425f
...
...
@@ -834,6 +834,7 @@ circuit_get_open_circ_or_launch(connection_t *conn,
log_fn
(
LOG_WARN
,
"Advertised intro point '%s' is not known. Closing."
,
exitname
);
return
-
1
;
}
/* XXX if we failed, then refetch the descriptor */
log_fn
(
LOG_INFO
,
"Chose %s as intro point for %s."
,
exitname
,
conn
->
rend_query
);
}
...
...
src/or/dns.c
View file @
25d5425f
...
...
@@ -474,6 +474,7 @@ int dnsworker_main(void *data) {
}
address
[
address_len
]
=
0
;
/* null terminate it */
/* XXX isn't this non-aligned uint32 going to cause problems? */
switch
(
tor_lookup_hostname
(
address
,
(
uint32_t
*
)
answer
+
1
))
{
case
1
:
log_fn
(
LOG_INFO
,
"Could not resolve dest addr %s (transient)."
,
address
);
...
...
@@ -482,9 +483,11 @@ int dnsworker_main(void *data) {
case
-
1
:
log_fn
(
LOG_INFO
,
"Could not resolve dest addr %s (permanent)."
,
address
);
answer
[
0
]
=
DNS_RESOLVE_FAILED_PERMANENT
;
break
;
case
0
:
log_fn
(
LOG_INFO
,
"Resolved address '%s'."
,
address
);
answer
[
0
]
=
DNS_RESOLVE_SUCCEEDED
;
break
;
}
if
(
write_all
(
fd
,
answer
,
5
,
1
)
!=
5
)
{
log_fn
(
LOG_ERR
,
"writing answer failed. Child exiting."
);
...
...
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