瀏覽代碼

Use connection_or_clear_identity in connection_or_clear_identity_map.

Nick Mathewson 8 年之前
父節點
當前提交
9bf9e34a01
共有 1 個文件被更改,包括 1 次插入2 次删除
  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));
     }
   });
 }