Bläddra i källkod

Make connection direction statistics compile again.

Karsten Loesing 15 år sedan
förälder
incheckning
0bd884cd5b
1 ändrade filer med 1 tillägg och 9 borttagningar
  1. 1 9
      src/or/router.c

+ 1 - 9
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);
     }
   }