Clear outbuf_flushlen when we clear a connection's outbuf
commitf7222e6d8cf31ce0e2a4653477ab42645c045db6
authorNick Mathewson <nickm@torproject.org>
Fri, 29 Sep 2017 14:00:14 +0000 (29 10:00 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 29 Sep 2017 14:00:14 +0000 (29 10:00 -0400)
tree4fe568b1d0445496b8c537f2c08acb93a0390adb
parent8e52c46581ca8279c0f132a822e06f10e5f4676d
Clear outbuf_flushlen when we clear a connection's outbuf

When we added single_conn_free_bytes(), we cleared the outbuf on a
connection without setting outbuf_flushlen() to 0.  This could cause
an assertion failure later on in flush_buf().

Fixes bug 23690; bugfix on 0.2.6.1-alpha.
changes/bug23690 [new file with mode: 0644]
src/or/circuitlist.c