]> granicus.if.org Git - libevent/commit
Fix assert() condition in evbuffer_drain() for IOCP
authorSuckShit <satansavior@gmail.com>
Fri, 20 Apr 2018 07:48:32 +0000 (15:48 +0800)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 22 Apr 2018 10:27:40 +0000 (13:27 +0300)
commitab3224c3e66cf92779f8bd91ffe90445e636fa50
tree42ec14021a2d833e0b5d950bae0b76285baff6cc
parentba78ba9e8ba4c964dd5d14a281d7421c95d37937
Fix assert() condition in evbuffer_drain() for IOCP

In the case of iocp, in the for loop above, there is a situation where:
  remaining == chain->off == 0

And this happens due to CHAIN_PINNED_R() case (that is used only in
buffer_iocp.c)

Closes: #630 (picked)
buffer.c