diff options
author | Alexander Færøy <ahf@torproject.org> | 2023-11-21 18:04:38 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2023-11-21 18:04:38 +0000 |
commit | 45c1a36acb0c859d647014d2d41b8497ecebcc14 (patch) | |
tree | 59b12e6083f2eb2f0508de465f1af08705619bb2 | |
parent | d8aa69925380acf165335917bb87becb2f659875 (diff) | |
parent | 635220734df1e3520fa81dff8be5ad6326ee8d64 (diff) | |
download | tor-45c1a36acb0c859d647014d2d41b8497ecebcc14.tar.gz tor-45c1a36acb0c859d647014d2d41b8497ecebcc14.zip |
Merge branch 'eol-config-no-spurious-warn' into 'main'
don't warn for empty RecommendedServerVersion
Closes #40888
See merge request tpo/core/tor!787
-rw-r--r-- | src/feature/dirauth/dirauth_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/dirauth/dirauth_config.c b/src/feature/dirauth/dirauth_config.c index 862ea9dafe..9378b0ffe6 100644 --- a/src/feature/dirauth/dirauth_config.c +++ b/src/feature/dirauth/dirauth_config.c @@ -471,7 +471,7 @@ dirauth_options_validate(const void *arg, char **msg) smartlist_split_string(version_sl, recommended_versions, ",", SPLIT_SKIP_SPACE, 0); SMARTLIST_FOREACH_BEGIN(version_sl, const char *, version) { - if (tor_version_parse(version, + if (version[0] != '\0' && tor_version_parse(version, &recommended_version) != 0) { COMPLAIN("Found unparseable version in RecommendedServerVersions"); continue; |