Prevent busy poll loop on pfkey message error.
authorclaudio <claudio@openbsd.org>
Wed, 15 Jun 2022 16:00:37 +0000 (16:00 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 15 Jun 2022 16:00:37 +0000 (16:00 +0000)
commitd542978219e5229e0ff7dd36423fc4b5b924f356
tree29d07ef01beadcbe991c63d5379afcab437b050d
parentd5bb65a2837bd64618badd814ae2a6aab08984a3
Prevent busy poll loop on pfkey message error.

When pfkey_reply() detects an error in a message it needs to flush that
message out of the buffer because pfkey_read() only did a peak read.
OK tb@
usr.sbin/bgpd/pfkey.c