From 86d69218efdcbedb4266410b7ccbd03e722dc08e Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 14 Dec 2005 01:02:35 +0000 Subject: [PATCH] orconn_identity_map was another static variable that started out NULL and didn't change until it needed to change. svn:r5578 --- src/or/connection_or.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/or/connection_or.c b/src/or/connection_or.c index fbc86a3764..b0ba930cf8 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -76,8 +76,10 @@ connection_or_clear_identity_map(void) } } - digestmap_free(orconn_identity_map, NULL); - orconn_identity_map = NULL; + if (orconn_identity_map) { + digestmap_free(orconn_identity_map, NULL); + orconn_identity_map = NULL; + } } /** Change conn->identity_digest to digest, and add conn into