]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix bug3183
authorGeorge Kadianakis <desnacked@gmail.com>
Sun, 15 May 2011 01:13:52 +0000 (03:13 +0200)
committerGeorge Kadianakis <desnacked@gmail.com>
Sun, 15 May 2011 01:13:52 +0000 (03:13 +0200)
src/or/status.c

index 3a51c8b0a7de0386910eb9e713243cc06a91241f..34a27b2edd71b0a48326920d524cedddcf8d43e8 100644 (file)
@@ -85,10 +85,9 @@ log_heartbeat(time_t now)
   const node_t *myself;
 
   or_options_t *options = get_options();
-  int is_server = server_mode(options);
   (void)now;
 
-  if (is_server) {
+  if (public_server_mode(options)) {
     /* Let's check if we are in the current cached consensus. */
     if (!(me = router_get_my_routerinfo()))
       return -1; /* Something stinks, we won't even attempt this. */