mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +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
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user