diff options
author | Roger Dingledine <arma@torproject.org> | 2005-12-14 01:02:35 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-12-14 01:02:35 +0000 |
commit | 86d69218efdcbedb4266410b7ccbd03e722dc08e (patch) | |
tree | caa621f74aab90eedeea4d6452fbe8e67c2fc488 /src/or | |
parent | c9f6e6b0a09bcfca155c5d0c797a7bab17174c4d (diff) | |
download | tor-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.c | 6 |
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 |