bugfix: close_immediate called buf_clear but listeners don't have bufs

svn:r1202
This commit is contained in:
Roger Dingledine 2004-03-03 01:58:45 +00:00
parent 5985aef18a
commit 49281424ae

View File

@ -155,8 +155,10 @@ void connection_close_immediate(connection_t *conn)
} }
close(conn->s); close(conn->s);
conn->s = -1; conn->s = -1;
buf_clear(conn->outbuf); if(!connection_is_listener(conn)) {
conn->outbuf_flushlen = 0; buf_clear(conn->outbuf);
conn->outbuf_flushlen = 0;
}
} }
int int