diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-08-03 16:04:25 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:34 -0400 |
commit | a561a10da726b426d326515ca7f75988b405bab7 (patch) | |
tree | d0b7089e76d3a2f8ed9db8d26ff025c53e88b4be /src/or/hs_intropoint.c | |
parent | 2c6f2e9be9db6d3889a0756be93d7203888eaa72 (diff) | |
download | tor-a561a10da726b426d326515ca7f75988b405bab7.tar.gz tor-a561a10da726b426d326515ca7f75988b405bab7.zip |
Fix small easy bugs all around
- Fix log message format string.
- Do extra circuit purpose check.
- wipe memory in a clear function
- Make sure we don't double add intro points in our list
- Make sure we don't double close intro circuits.
- s/tt_u64_op/tt_i64_op/
Diffstat (limited to 'src/or/hs_intropoint.c')
-rw-r--r-- | src/or/hs_intropoint.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/hs_intropoint.c b/src/or/hs_intropoint.c index a0453841f9..644611feab 100644 --- a/src/or/hs_intropoint.c +++ b/src/or/hs_intropoint.c @@ -607,5 +607,6 @@ hs_intropoint_clear(hs_intropoint_t *ip) SMARTLIST_FOREACH(ip->link_specifiers, hs_desc_link_specifier_t *, ls, hs_desc_link_specifier_free(ls)); smartlist_free(ip->link_specifiers); + memset(ip, 0, sizeof(hs_intropoint_t)); } |