[tor-commits] [tor/master] Fix linking when dirauth module is disabled.

nickm at torproject.org nickm at torproject.org
Thu Jul 19 18:34:31 UTC 2018


commit 7260d07feec41a37d57e5e046d154760d569ecc6
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Jul 19 14:33:18 2018 -0400

    Fix linking when dirauth module is disabled.
    
    Bugfix on dcee4d4c9cc7d98e5ae8e913c73a3afc41753c64, bug not in any
    released Tor.
---
 src/or/config.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/or/config.c b/src/or/config.c
index 6f774b260..b0e66ccd2 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3517,12 +3517,14 @@ options_validate(or_options_t *old_options, or_options_t *options,
       REJECT("Versioning authoritative dir servers must set "
              "Recommended*Versions.");
 
+#ifdef HAVE_MODULE_DIRAUTH
     char *t;
     /* Call these functions to produce warnings only. */
     t = format_recommended_version_list(options->RecommendedClientVersions, 1);
     tor_free(t);
     t = format_recommended_version_list(options->RecommendedServerVersions, 1);
     tor_free(t);
+#endif
 
     if (options->UseEntryGuards) {
       log_info(LD_CONFIG, "Authoritative directory servers can't set "





More information about the tor-commits mailing list