mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Fix segfault in unit tests. (Main program is unaffected)
svn:r2559
This commit is contained in:
parent
4c2595ca66
commit
b130aa3c8f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user