mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
bugfix: close_immediate called buf_clear but listeners don't have bufs
svn:r1202
This commit is contained in:
parent
5985aef18a
commit
49281424ae
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue