[or-cvs] r8974: we were leaking all the fingerprints for !reject, !invalid, (tor/trunk/src/or)

arma at seul.org arma at seul.org
Mon Nov 20 16:36:49 UTC 2006


Author: arma
Date: 2006-11-20 11:36:44 -0500 (Mon, 20 Nov 2006)
New Revision: 8974

Modified:
   tor/trunk/src/or/dirserv.c
Log:
we were leaking all the fingerprints for !reject, !invalid,
and !badexit lines in the approved-routers file.


Modified: tor/trunk/src/or/dirserv.c
===================================================================
--- tor/trunk/src/or/dirserv.c	2006-11-20 16:35:22 UTC (rev 8973)
+++ tor/trunk/src/or/dirserv.c	2006-11-20 16:36:44 UTC (rev 8974)
@@ -124,6 +124,7 @@
     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")) {



More information about the tor-commits mailing list