mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-19 04:00:46 +00:00
BUG/MAJOR: buffers: fix get_buffer_nc() for data at end of buffer
This function incorrectly dealt with the case where data doesn't wrap but lies at the end of the buffer, resulting in Lukas' reported data corruption with HTTP/2. No backport is needed, it was introduced for HTTP/2 in 1.8-dev.
This commit is contained in:
parent
9c54c53f2f
commit
4b75fffa2b
@ -543,7 +543,7 @@ static inline int bo_getblk_nc(struct buffer *buf, char **blk1, int *len1, char
|
||||
return 2;
|
||||
}
|
||||
|
||||
*blk1 = buf->p - buf->o;
|
||||
*blk1 = bo_ptr(buf);
|
||||
*len1 = buf->o;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user