summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-04-25 06:05:46 +0000
committerRoger Dingledine <arma@torproject.org>2007-04-25 06:05:46 +0000
commit5bdb138d11158c526faa10c2e9647f3b8c304083 (patch)
treec15144dec03c8fb9a51358ef631e3b57f277d5e8 /src/or/control.c
parent8f2883e96bd428b19fe9f0cec29f0215a4290c1a (diff)
downloadtor-5bdb138d11158c526faa10c2e9647f3b8c304083.tar.gz
tor-5bdb138d11158c526faa10c2e9647f3b8c304083.zip
cleanups, and note a bug
svn:r10022
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 17744939fb..beeb1727fb 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -3016,6 +3016,10 @@ control_event_networkstatus_changed(smartlist_t *statuses)
smartlist_add(strs, s);
});
smartlist_add(strs, tor_strdup("\r\n.\r\n"));
+ /* XXX the above strdup has an extra \r\n in it, resulting in
+ * a blank line in the NS output. Can we remove it, or is that
+ * bad since the output of networkstatus_getinfo_helper_single()
+ * only adds \n, not \r\n? */
s = smartlist_join_strings(strs, "", 0, NULL);
SMARTLIST_FOREACH(strs, char *, cp, tor_free(cp));