mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 20:41:27 -04:00
Clean up a mistake in pointer manipulation in evbuffer_remove
This commit is contained in:
parent
d5ebcf370d
commit
28bfed47e2
2
buffer.c
2
buffer.c
@ -893,7 +893,7 @@ evbuffer_remove(struct evbuffer *buf, void *data_out, size_t datlen)
|
|||||||
data += chain->off;
|
data += chain->off;
|
||||||
datlen -= chain->off;
|
datlen -= chain->off;
|
||||||
|
|
||||||
if (chain == *buf->last_with_datap) {
|
if (buf->last_with_datap == &chain->next) {
|
||||||
buf->last_with_datap = &buf->first;
|
buf->last_with_datap = &buf->first;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user