summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2010-12-03 16:57:08 +0100
committerKarsten Loesing <karsten.loesing@gmx.net>2010-12-03 17:37:13 +0100
commit0bd884cd5b5e22283f7fa02a5ff4ef86ebd32095 (patch)
tree198d0ee26acdab6035e2ec3510a4b168aa036211 /src/or
parent8db10c6d2fb0dc632f3bfdcc4a9acc5e3c7ad515 (diff)
downloadtor-0bd884cd5b5e22283f7fa02a5ff4ef86ebd32095.tar.gz
tor-0bd884cd5b5e22283f7fa02a5ff4ef86ebd32095.zip
Make connection direction statistics compile again.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/router.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 686151a64c..f630d25dc3 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -2054,15 +2054,7 @@ extrainfo_dump_to_string(char **s_out, extrainfo_t *extrainfo,
if (options->ConnDirectionStatistics &&
load_stats_file("stats"PATH_SEPARATOR"conn-stats",
"conn-bi-direct", now, &contents) > 0) {
- size_t pos = strlen(s);
- if (strlcpy(s + pos, contents, maxlen - strlen(s)) !=
- strlen(contents)) {
- log_warn(LD_DIR, "Could not write conn-stats to extra-info "
- "descriptor.");
- s[pos] = '\0';
- write_stats_to_extrainfo = 0;
- }
- tor_free(contents);
+ smartlist_add(chunks, contents);
}
}