mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-26 14:42:21 +00:00
BUG/MINOR: checks: Properly handle truncated mysql server messages
If a message is not fully received from a mysql server, depending on last_read value, an error must be reported or we must wait for more data. The first if statement must not check last_read. Partly fixes issue #600. No backport needed.
This commit is contained in:
parent
587c414071
commit
733dd73443
@ -1202,7 +1202,7 @@ static enum tcpcheck_eval_ret tcpcheck_mysql_expect_packet(struct check *check,
|
||||
|
||||
|
||||
/* 3 Bytes for the packet length and 1 byte for the sequence id */
|
||||
if (!last_read && b_data(&check->bi) < offset+4) {
|
||||
if (b_data(&check->bi) < offset+4) {
|
||||
if (!last_read)
|
||||
goto wait_more_data;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user