diff options
-rw-r--r-- | src/or/connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index e81635a110..e0e29cfcae 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -155,8 +155,10 @@ void connection_close_immediate(connection_t *conn) } close(conn->s); conn->s = -1; - buf_clear(conn->outbuf); - conn->outbuf_flushlen = 0; + if(!connection_is_listener(conn)) { + buf_clear(conn->outbuf); + conn->outbuf_flushlen = 0; + } } int |