From 635220734df1e3520fa81dff8be5ad6326ee8d64 Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Thu, 16 Nov 2023 19:13:28 +0100 Subject: [PATCH] don't warn for empty RecommendedServerVersion --- src/feature/dirauth/dirauth_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;