]> granicus.if.org Git - libevent/commit
evbuffer: fix last_with_datap after prepend with empty chain
authorAzat Khuzhin <azat@libevent.org>
Fri, 10 May 2019 21:17:03 +0000 (00:17 +0300)
committerAzat Khuzhin <azat@libevent.org>
Thu, 16 May 2019 07:16:21 +0000 (10:16 +0300)
commit401bd1c09e9753ce997539c177cb1e48025a7343
treec89eff40efe4033a0c076d3920526be44302a633
parent244cacaf8ccfe8b8978df20791998bbc92225dc8
evbuffer: fix last_with_datap after prepend with empty chain

last_with_datap should be adjusted only if it buf->first *was* not
empty, otherwise last_with_datap should point to the prepended chain.
buffer.c