Merge branch 'eol-config-no-spurious-warn' into 'main'

don't warn for empty RecommendedServerVersion

Closes #40888

See merge request tpo/core/tor!787
This commit is contained in:
Alexander Færøy 2023-11-21 18:04:38 +00:00
commit 45c1a36acb

View File

@ -471,7 +471,7 @@ dirauth_options_validate(const void *arg, char **msg)
smartlist_split_string(version_sl, recommended_versions, ",", smartlist_split_string(version_sl, recommended_versions, ",",
SPLIT_SKIP_SPACE, 0); SPLIT_SKIP_SPACE, 0);
SMARTLIST_FOREACH_BEGIN(version_sl, const char *, version) { SMARTLIST_FOREACH_BEGIN(version_sl, const char *, version) {
if (tor_version_parse(version, if (version[0] != '\0' && tor_version_parse(version,
&recommended_version) != 0) { &recommended_version) != 0) {
COMPLAIN("Found unparseable version in RecommendedServerVersions"); COMPLAIN("Found unparseable version in RecommendedServerVersions");
continue; continue;