we were leaking all the fingerprints for !reject, !invalid,

and !badexit lines in the approved-routers file.


svn:r8974
This commit is contained in:
Roger Dingledine 2006-11-20 16:36:44 +00:00
parent 858e939556
commit 69ae0a2986

View File

@ -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")) {