Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Core
Tor
Commits
254c1bac
Unverified
Commit
254c1bac
authored
Aug 10, 2019
by
teor
Browse files
Merge remote-tracking branch 'tor-github/pr/1078' into maint-0.2.9
parents
e07d08a1
ba83c1e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug30781
0 → 100644
View file @
254c1bac
o Minor bugfixes (directory authorities):
- Stop crashing after parsing an unknown descriptor purpose annotation.
We think this bug can only be triggered by modifying a local file.
Fixes bug 30781; bugfix on 0.2.0.8-alpha.
src/or/routerparse.c
View file @
254c1bac
...
...
@@ -1921,6 +1921,9 @@ router_parse_entry_from_string(const char *s, const char *end,
if
((
tok
=
find_opt_by_keyword
(
tokens
,
A_PURPOSE
)))
{
tor_assert
(
tok
->
n_args
);
router
->
purpose
=
router_purpose_from_string
(
tok
->
args
[
0
]);
if
(
router
->
purpose
==
ROUTER_PURPOSE_UNKNOWN
)
{
goto
err
;
}
}
else
{
router
->
purpose
=
ROUTER_PURPOSE_GENERAL
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment