aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-12-14 01:02:35 +0000
committerRoger Dingledine <arma@torproject.org>2005-12-14 01:02:35 +0000
commit86d69218efdcbedb4266410b7ccbd03e722dc08e (patch)
treecaa621f74aab90eedeea4d6452fbe8e67c2fc488 /src/or
parentc9f6e6b0a09bcfca155c5d0c797a7bab17174c4d (diff)
downloadtor-86d69218efdcbedb4266410b7ccbd03e722dc08e.tar.gz
tor-86d69218efdcbedb4266410b7ccbd03e722dc08e.zip
orconn_identity_map was another static variable that started
out NULL and didn't change until it needed to change. svn:r5578
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection_or.c6
1 files 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