aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control/control_getinfo.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-06-05 10:08:27 -0400
committerNick Mathewson <nickm@torproject.org>2020-06-05 10:08:27 -0400
commit1fb9be53969011a10c453a36099583f631dc8a09 (patch)
treef1eddd4171602f5b1701f36f22c38da469c645d2 /src/feature/control/control_getinfo.c
parentb335ef178156e2a6825c48a04222384869c08c5f (diff)
parent3e4814edeb563535b0f3bf658c01d7c10d6b4aa2 (diff)
downloadtor-1fb9be53969011a10c453a36099583f631dc8a09.tar.gz
tor-1fb9be53969011a10c453a36099583f631dc8a09.zip
Merge remote-tracking branch 'tor-github/pr/1902/head'
Diffstat (limited to 'src/feature/control/control_getinfo.c')
-rw-r--r--src/feature/control/control_getinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/control/control_getinfo.c b/src/feature/control/control_getinfo.c
index b2d0c9680d..0823acbe07 100644
--- a/src/feature/control/control_getinfo.c
+++ b/src/feature/control/control_getinfo.c
@@ -137,6 +137,7 @@ getinfo_helper_misc(control_connection_t *conn, const char *question,
return -1;
}
*answer = tor_dup_ip(addr);
+ tor_assert_nonfatal(*answer);
} else if (!strcmp(question, "traffic/read")) {
tor_asprintf(answer, "%"PRIu64, (get_bytes_read()));
} else if (!strcmp(question, "traffic/written")) {