diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-17 15:45:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-17 15:45:54 +0000 |
commit | b130aa3c8f70037db21a97c5dac9382c8a0f0787 (patch) | |
tree | 3bd748db8f1c12f95c04f8afd8b12d53204884f7 | |
parent | 4c2595ca66c3dd66086ab1bee0297ca9beb3c556 (diff) | |
download | tor-b130aa3c8f70037db21a97c5dac9382c8a0f0787.tar.gz tor-b130aa3c8f70037db21a97c5dac9382c8a0f0787.zip |
Fix segfault in unit tests. (Main program is unaffected)
svn:r2559
-rw-r--r-- | src/or/test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index 7506d5deb1..8706600eb5 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -919,7 +919,8 @@ test_dir_format() test_assert(!is_legal_nickname_or_hexdigest("abcdefghijklmnopqrst")); get_platform_str(platform, sizeof(platform)); - + memset(&r1,0,sizeof(r1)); + memset(&r2,0,sizeof(r2)); r1.address = "testaddr1.foo.bar"; r1.addr = 0xc0a80001u; /* 192.168.0.1 */ r1.published_on = 0; |