diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-12-02 16:21:50 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-12-02 16:21:50 -0500 |
commit | 5303918091d832d2986b113d60a6ba1ca328af1c (patch) | |
tree | d260d2bc14561d2f95c80f4b0de852e77adf676e /src/or/cpuworker.c | |
parent | 57ff9913b25ff640f4ae45dc9b60bc28c30f53b8 (diff) | |
download | tor-5303918091d832d2986b113d60a6ba1ca328af1c.tar.gz tor-5303918091d832d2986b113d60a6ba1ca328af1c.zip |
Init conn->addr to "unspec" on cpuworker connections
Fixes bug 4532 reported by "troll_un"
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index 914003790a..e4460c5981 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -347,6 +347,7 @@ spawn_cpuworker(void) /* set up conn so it's got all the data we need to remember */ conn->s = fd; conn->address = tor_strdup("localhost"); + tor_addr_make_unspec(&conn->addr); if (connection_add(conn) < 0) { /* no space, forget it */ log_warn(LD_NET,"connection_add for cpuworker failed. Giving up."); |