diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-06-23 15:16:25 -0700 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-09-07 12:14:58 -0400 |
commit | 8aad677bb7542376b053ecd12a0c6943e8cfa3c0 (patch) | |
tree | 5419943367e362e53b1d25990c72f6e3275b0834 /src | |
parent | b70a0a43750f6aabe800a83bcd7fdd6a5a14911b (diff) | |
download | tor-8aad677bb7542376b053ecd12a0c6943e8cfa3c0.tar tor-8aad677bb7542376b053ecd12a0c6943e8cfa3c0.tar.gz |
Die if tor_vasprintf fails in connection_printf_to_buf
tor_asprintf already asserts if it fails.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c index 853f4c4e4..513e968cf 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -503,8 +503,8 @@ connection_printf_to_buf(control_connection_t *conn, const char *format, ...) va_end(ap); if (len < 0) { - log_warn(LD_BUG, "Unable to format string for controller."); - return; + log_err(LD_BUG, "Unable to format string for controller."); + tor_assert(0); } connection_write_to_buf(buf, (size_t)len, TO_CONN(conn)); |