Kaynağa Gözat

Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

Nick Mathewson 11 yıl önce
ebeveyn
işleme
7e0f1fa52a
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 4 0
      changes/bug6979
  2. 1 1
      src/or/router.c

+ 4 - 0
changes/bug6979

@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Fix an assertion failure that would occur when disabling the
+      ORPort setting on a running Tor process while accounting was
+      enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.

+ 1 - 1
src/or/router.c

@@ -236,7 +236,7 @@ get_server_identity_key(void)
 int
 server_identity_key_is_set(void)
 {
-  return server_identitykey != NULL;
+  return server_mode(get_options()) && server_identitykey != NULL;
 }
 
 /** Set the current client identity key to <b>k</b>.