Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn the directory authority operator if their versions list is bogus #228

Closed
wants to merge 4 commits into from

Conversation

nmathewson
Copy link
Contributor

Prevents bug 26485; bugfix on 0.1.1.6-alpha.

Another way to try to prevent a recurrence of 26485.
@coveralls
Copy link

coveralls commented Jul 11, 2018

Coverage Status

Coverage increased (+0.05%) to 50.347% when pulling f6893c5 on nmathewson:bug26485_029 into 8b53dfc on torproject:maint-0.2.9.

Copy link
Contributor

@tlyu tlyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline comment. Also do we want to add tests for these new warnings?

src/or/dirserv.c Outdated
@@ -1042,6 +1041,37 @@ format_versions_list(config_line_t *ln)
smartlist_split_string(versions, ln->value, ",",
SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0);
}

/* Handle the case where a dirauth operator has accidentally made some
* versions comma-separated instead of space-separated. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment seems backward. The code looks like it checks for and warns about spaces.

@tlyu
Copy link
Contributor

tlyu commented Jul 19, 2018

This was squashed and merged to 0.2.9 in a321d72.

@tlyu tlyu closed this Jul 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants