mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-01 23:39:32 +00:00
BUG/MAJOR: ssl: fix breakage caused by recent fix abf08d9
Recent commit abf08d9
("BUG/MAJOR: connection: fix mismatch between rcv_buf's
API and usage") accidentely broke SSL by relying on an uninitialized value to
enter the read loop.
Many thanks to Cyril Bont and Steve Ruiz for reporting this issue.
This commit is contained in:
parent
410f8101ae
commit
00b0fb9349
@ -1353,7 +1353,7 @@ static int ssl_sock_to_buf(struct connection *conn, struct buffer *buf, int coun
|
||||
* in which case we accept to do it once again. A new attempt is made on
|
||||
* EINTR too.
|
||||
*/
|
||||
while (try) {
|
||||
while (count > 0) {
|
||||
/* first check if we have some room after p+i */
|
||||
try = buf->data + buf->size - (buf->p + buf->i);
|
||||
/* otherwise continue between data and p-o */
|
||||
|
Loading…
Reference in New Issue
Block a user