]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Correctly remove extraneous space in router family lines
authorNick Mathewson <nickm@torproject.org>
Tue, 5 Aug 2014 15:09:08 +0000 (11:09 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 5 Aug 2014 15:09:08 +0000 (11:09 -0400)
Fixes bug 12728; bugfix on 0.2.1.7-alpha when the SPLIT_IGNORE_SPACE
option was added.

changes/bug12728 [new file with mode: 0644]
src/or/router.c

diff --git a/changes/bug12728 b/changes/bug12728
new file mode 100644 (file)
index 0000000..ee39245
--- /dev/null
@@ -0,0 +1,4 @@
+
+  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.
index eabd9c3f59c2e7f72efaf83cfc67173c8f0dc487..1b65f266f2307365ae0ca8d2f088270e68955415 100644 (file)
@@ -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))