diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-03 01:58:45 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-03 01:58:45 +0000 |
commit | 49281424aed515b4c04ea0ad2c859757b1f56984 (patch) | |
tree | 95982d2c797519e53001ab7043d946568aa6572b | |
parent | 5985aef18a5b441172dcbfea161e6d3e364ee111 (diff) | |
download | tor-49281424aed515b4c04ea0ad2c859757b1f56984.tar tor-49281424aed515b4c04ea0ad2c859757b1f56984.tar.gz |
bugfix: close_immediate called buf_clear but listeners don't have bufs
svn:r1202
-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 e81635a11..e0e29cfca 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 |