]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix linking when dirauth module is disabled.
authorNick Mathewson <nickm@torproject.org>
Thu, 19 Jul 2018 18:33:18 +0000 (14:33 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 19 Jul 2018 18:33:18 +0000 (14:33 -0400)
Bugfix on dcee4d4c9cc7d98e5ae8e913c73a3afc41753c64, bug not in any
released Tor.

src/or/config.c

index 6f774b2605af11fd9a2f531780e6b20d15eb2ffe..b0e66ccd263ad2ab4fbfad16c1808400bd894a1f 100644 (file)
@@ -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 "