[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Use connection_or_clear_identity in connection_or_clear_identity_map.
commit 9bf9e34a01a5b0b8d28ff2486c73e243561b4e3e
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits