From 8aad677bb7542376b053ecd12a0c6943e8cfa3c0 Mon Sep 17 00:00:00 2001 From: Robert Ransom Date: Thu, 23 Jun 2011 15:16:25 -0700 Subject: Die if tor_vasprintf fails in connection_printf_to_buf tor_asprintf already asserts if it fails. --- src/or/control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)); -- cgit v1.2.3