From ead35ef9440a4d20a559441b2c6779954d3c02d5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 15 Jan 2007 21:13:37 +0000 Subject: r11957@Kushana: nickm | 2007-01-15 15:25:57 -0500 Patch from Mike Perry: Track reasons for OR connection failure; display them in control events. Needs review and revision. svn:r9354 --- src/or/buffers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/buffers.c') diff --git a/src/or/buffers.c b/src/or/buffers.c index 9da86e8cd4..050141a03b 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -543,7 +543,7 @@ read_to_buf_tls(tor_tls_t *tls, size_t at_most, buf_t *buf) (int)at_most); if (buf_ensure_capacity(buf, at_most+buf->datalen)) - return TOR_TLS_ERROR; + return TOR_TLS_ERROR_MISC; if (at_most + buf->datalen > buf->len) at_most = buf->len - buf->datalen; -- cgit v1.2.3-54-g00ecf