diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-06-05 01:50:35 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-06-05 01:50:35 +0000 |
commit | 17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8 (patch) | |
tree | a98d7127db6e9a733e0978668f539d211b2638c5 /src/or/cpuworker.c | |
parent | 42569ffd0fc659d81093bc1d7b0fe5171e5738cf (diff) | |
download | tor-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.c | 5 |
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(;;) { |