let pfattach() to also initialize pf_default_rule_new to avoid
authorsashan <sashan@openbsd.org>
Wed, 9 Feb 2022 11:42:58 +0000 (11:42 +0000)
committersashan <sashan@openbsd.org>
Wed, 9 Feb 2022 11:42:58 +0000 (11:42 +0000)
commit43496f5abc1b87305c8f87f3d38acc3b24349b79
tree29062b3adc280368a279b13dccaf34028439a00f
parent555fd15dcf830b9fb7a50490d9996f605a238ab5
let pfattach() to also initialize pf_default_rule_new to avoid
div-by-zero in pf_purge()

Reported-by: syzbot+e720e3bab51366d7b667@syzkaller.appspotmail.com
OK deraadt@
sys/net/pf_ioctl.c