]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
don't warn for empty RecommendedServerVersion
authortrinity-1686a <trinity@deuxfleurs.fr>
Thu, 16 Nov 2023 18:13:28 +0000 (19:13 +0100)
committertrinity-1686a <trinity@deuxfleurs.fr>
Thu, 16 Nov 2023 18:15:25 +0000 (19:15 +0100)
src/feature/dirauth/dirauth_config.c

index 862ea9dafe8010bf3a2620eea7ba36672aaecfd4..9378b0ffe68379ef6087541648d622145f96b5b4 100644 (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;