r14034@catbus: nickm | 2007-07-31 05:22:56 -0400

possible fix for bug 473: always set buf->cur on buf_remove_from_front.


svn:r11004
This commit is contained in:
Nick Mathewson 2007-07-31 09:31:15 +00:00
parent ce8edc964c
commit 480db0f00a

View file

@ -486,12 +486,12 @@ buf_remove_from_front(buf_t *buf, size_t n)
if (buf->datalen) {
buf->cur = _wrap_ptr(buf, buf->cur+n);
} else {
buf->cur = buf->mem;
if (IS_FREELIST_SIZE(buf->len)) {
buf->highwater = 0;
if (add_buf_mem_to_freelist(buf))
return;
} else {
buf->cur = buf->mem;
}
}
check();