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
46be0fa9
Commit
46be0fa9
authored
Apr 04, 2005
by
Nick Mathewson
🎨
Browse files
Make last fix work on windows too.
svn:r4009
parent
0fff263a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/or/cpuworker.c
View file @
46be0fa9
...
...
@@ -272,7 +272,7 @@ static int cpuworker_main(void *data) {
crypto_free_pk_env
(
onion_key
);
if
(
last_onion_key
)
crypto_free_pk_env
(
last_onion_key
);
close
(
fd
);
tor_
close
_socket
(
fd
);
spawn_exit
();
return
0
;
/* windows wants this function to return an int */
}
...
...
src/or/dns.c
View file @
46be0fa9
...
...
@@ -728,13 +728,13 @@ static int dnsworker_main(void *data) {
log_fn
(
LOG_INFO
,
"DNS worker exiting because of error on connection to Tor process."
);
log_fn
(
LOG_INFO
,
"(Error on %d was %s)"
,
fd
,
tor_socket_strerror
(
tor_socket_errno
(
fd
)));
}
close
(
fd
);
tor_
close
_socket
(
fd
);
spawn_exit
();
}
if
(
address_len
&&
read_all
(
fd
,
address
,
address_len
,
1
)
!=
address_len
)
{
log_fn
(
LOG_ERR
,
"read hostname failed. Child exiting."
);
close
(
fd
);
tor_
close
_socket
(
fd
);
spawn_exit
();
}
address
[
address_len
]
=
0
;
/* null terminate it */
...
...
@@ -761,7 +761,7 @@ static int dnsworker_main(void *data) {
set_uint32
(
answer
+
1
,
ip
);
if
(
write_all
(
fd
,
answer
,
5
,
1
)
!=
5
)
{
log_fn
(
LOG_ERR
,
"writing answer failed. Child exiting."
);
close
(
fd
);
tor_
close
_socket
(
fd
);
spawn_exit
();
}
}
...
...
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