Browse Source

orconn_identity_map was another static variable that started
out NULL and didn't change until it needed to change.


svn:r5578

Roger Dingledine 20 years ago
parent
commit
86d69218ef
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/or/connection_or.c

+ 4 - 2
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