The fix comes from Giannis Kapetanakis (bilias _from_ edu.physics.uoc.gr).
authorsashan <sashan@openbsd.org>
Mon, 17 Jun 2024 08:36:56 +0000 (08:36 +0000)
committersashan <sashan@openbsd.org>
Mon, 17 Jun 2024 08:36:56 +0000 (08:36 +0000)
commit8663a10cc3dd3c5d98e4158b4db2207a322eac52
treec7a86dd6634a69b593adca9c9d774377cab5e6a9
parent614ef94793a974f1fc098b7d585f68565849ef18
The fix comes from Giannis Kapetanakis (bilias _from_ edu.physics.uoc.gr).
When relayd(8) handles 'host disable/enable' command issued by relayctl(8),
it disables redirect it finds in tables for particular host.  However there can
be multiple redirect instances which use the same host in relayd(8) tables.
This change makes relayd(8) to walk through all tables and disable all redirects
which match the host.

OK giovanni@, OK sashan@
usr.sbin/relayd/pfe.c