summaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-06-05 01:50:35 +0000
committerNick Mathewson <nickm@torproject.org>2004-06-05 01:50:35 +0000
commit17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8 (patch)
treea98d7127db6e9a733e0978668f539d211b2638c5 /src/or/cpuworker.c
parent42569ffd0fc659d81093bc1d7b0fe5171e5738cf (diff)
downloadtor-17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8.tar.gz
tor-17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8.zip
Make tor build on win32 again; handle locking for server
svn:r1948
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index 94a2238b62..1b55822a5f 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -202,10 +202,7 @@ static int cpuworker_main(void *data) {
connection_free_all(); /* so the child doesn't hold the parent's fd's open */
#endif
- /* XXXX WINDOWS lock here. */
- onion_key = crypto_pk_dup_key(get_onion_key());
- if (get_previous_onion_key())
- last_onion_key = crypto_pk_dup_key(get_previous_onion_key());
+ dup_onion_keys(&onion_key, &last_onion_key);
for(;;) {