commit 9bf9e34a01a5b0b8d28ff2486c73e243561b4e3e Author: Nick Mathewson nickm@torproject.org Date: Wed Dec 7 12:57:51 2016 -0500
Use connection_or_clear_identity in connection_or_clear_identity_map. --- src/or/connection_or.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index 088900c..046865d 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -101,8 +101,7 @@ connection_or_clear_identity_map(void) SMARTLIST_FOREACH(conns, connection_t *, conn, { if (conn->type == CONN_TYPE_OR) { - or_connection_t *or_conn = TO_OR_CONN(conn); - memset(or_conn->identity_digest, 0, DIGEST_LEN); + connection_or_clear_identity(TO_OR_CONN(conn)); } }); }
tor-commits@lists.torproject.org