Browse Source

Use connection_or_clear_identity in connection_or_clear_identity_map.

Nick Mathewson 8 years ago
parent
commit
9bf9e34a01
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/or/connection_or.c

+ 1 - 2
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));
     }
   });
 }