Skip to content
Snippets Groups Projects
Commit 04007448 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Correctly remove extraneous space in router family lines

Fixes bug 12728; bugfix on 0.2.1.7-alpha when the SPLIT_IGNORE_SPACE
option was added.
parent fcbb21b4
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes:
- When generating our family list, remove spaces from around the
entries there. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
......@@ -1884,7 +1884,7 @@ router_rebuild_descriptor(int force)
family = smartlist_new();
ri->declared_family = smartlist_new();
smartlist_split_string(family, options->MyFamily, ",",
SPLIT_SKIP_SPACE|SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0);
SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK|SPLIT_STRIP_SPACE, 0);
SMARTLIST_FOREACH_BEGIN(family, char *, name) {
const node_t *member;
if (!strcasecmp(name, options->Nickname))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment