check_send_expect() does some nasty ibuf magic to allow fn_match()
authorclaudio <claudio@openbsd.org>
Sat, 18 Sep 2021 19:44:46 +0000 (19:44 +0000)
committerclaudio <claudio@openbsd.org>
Sat, 18 Sep 2021 19:44:46 +0000 (19:44 +0000)
commitd2b99c18837c8c9128e1830308138b8a1d4f7b16
tree2006efde61def48e0f42fa2f843b2955d00937a9
parent91a6878505a1189c536bb1ba946c28f55df79f0a
check_send_expect() does some nasty ibuf magic to allow fn_match()
to work with a buffer that is not a real string.
The wpos is decremented in the wrong spot and would affect both
binary and non binary checks.
Simplify this code by using strndup.
OK rob@ benno@
usr.sbin/relayd/check_tcp.c