reduce duplicate code, fix typo/free correct buffer
authorkn <kn@openbsd.org>
Mon, 16 Jul 2018 08:29:08 +0000 (08:29 +0000)
committerkn <kn@openbsd.org>
Mon, 16 Jul 2018 08:29:08 +0000 (08:29 +0000)
commitd114b773335a4a5ac560adb8d565423b579ad491
tree5996e405568081fd464e5a92ae80980ba669e72d
parent787c8737dd796da798fccd3a6585382e1f8d8c67
reduce duplicate code, fix typo/free correct buffer

In filteropts_to_rule():

* Merge `once' handling from `anchorrule' and `pfrule'
* Remove/shorten duplicate code block
* Fix typo I introduced with r1.678 that frees the wrong buffer (twice)

OK sashan
sbin/pfctl/parse.y