]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: smtpchk: Update expect rule to fully match replies to EHLO commands
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 21 Sep 2022 12:42:47 +0000 (14:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 21 Sep 2022 13:11:26 +0000 (15:11 +0200)
commit2ec1ffaed061cd3560934c7525b204dbca25ace3
tree299de2c8230c802d411564965114f37648d11ec1
parent330af2d7ed2d8d72800fc7761253ff6965681742
MINOR: smtpchk: Update expect rule to fully match replies to EHLO commands

The response to EHLO command is a multiline reply. However the corresponding
expect rule only match on the first line. For now, it is not an issue. But
to be able to send the QUIT command and gracefully close the connection, we
must be sure to consume the full EHLO reply first.

To do so, the regex has been updated to match all 2xx lines at a time.
src/tcpcheck.c