]> granicus.if.org Git - libevent/commit
Fix wrong assert in evbuffer_drain()
authorAzat Khuzhin <a3at.mail@gmail.com>
Mon, 14 Aug 2017 20:03:48 +0000 (23:03 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Mon, 14 Aug 2017 20:11:03 +0000 (23:11 +0300)
commitb26996a05d9e7aad32e78a7bfab6454d5c11500a
treeb7671a60c9bc180ec83c35dd9d359a4295ad637b
parente83443ec67d45447296c2ce320620a07c88e1d32
Fix wrong assert in evbuffer_drain()

"chain" cannot be NULL here because we have at least one chain (we
handle empty buffer separatelly) and hence loop will be executed at
least once.

Link: https://github.com/libevent/libevent/commit/841ecbd96105c84ac2e7c9594aeadbcc6fb38bc4#commitcomment-23631347
Signed-off-by: Ivan Maidanski <i.maidanski@samsung.com>
Signed-off-by: Azat Khuzhin <a3at.mail@gmail.com>
buffer.c