don't warn for empty RecommendedServerVersion

This commit is contained in:
trinity-1686a 2023-11-16 19:13:28 +01:00
parent cec6f9919d
commit 635220734d

View File

@ -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;