]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
clean_consdiffmgr() callback is only for directories
authorDavid Goulet <dgoulet@torproject.org>
Wed, 25 Apr 2018 18:12:38 +0000 (14:12 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 25 Apr 2018 18:12:38 +0000 (14:12 -0400)
Only relevant for directory servers.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/main.c

index ffe4073295776ce65b8e927c5c031e9e7482cd0e..37eacd2c11675cc73ac57b4df23566b31498cb86 100644 (file)
@@ -2318,7 +2318,7 @@ static int
 clean_consdiffmgr_callback(time_t now, const or_options_t *options)
 {
   (void)now;
-  if (server_mode(options)) {
+  if (dir_server_mode(options)) {
     consdiffmgr_cleanup();
   }
   return CDM_CLEAN_CALLBACK_INTERVAL;