소스 검색

we were leaking all the fingerprints for !reject, !invalid,
and !badexit lines in the approved-routers file.


svn:r8974

Roger Dingledine 19 년 전
부모
커밋
69ae0a2986
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/dirserv.c

+ 1 - 0
src/or/dirserv.c

@@ -124,6 +124,7 @@ add_fingerprint_to_dir(const char *nickname, const char *fp,
     status->status |= FP_NAMED;
     strlcpy(status->nickname, nickname, sizeof(status->nickname));
   } else {
+    tor_free(fingerprint);
     if (!strcasecmp(nickname, "!reject")) {
       status->status |= FP_REJECT;
     } else if (!strcasecmp(nickname, "!invalid")) {