Clean up a mistake in pointer manipulation in evbuffer_remove

This commit is contained in:
Christopher Davis 2010-04-02 19:08:32 -04:00 committed by Nick Mathewson
parent d5ebcf370d
commit 28bfed47e2

View File

@ -893,7 +893,7 @@ evbuffer_remove(struct evbuffer *buf, void *data_out, size_t datlen)
data += chain->off;
datlen -= chain->off;
if (chain == *buf->last_with_datap) {
if (buf->last_with_datap == &chain->next) {
buf->last_with_datap = &buf->first;
}