There was a corner case where linking the inp to the state key did
authorbluhm <bluhm@openbsd.org>
Sun, 24 Dec 2017 14:18:19 +0000 (14:18 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 24 Dec 2017 14:18:19 +0000 (14:18 +0000)
commit36e59af023145bcfbd91196c677db6af7e1a0b98
tree52c78dc41aca0f30a55ebeacdff30d9c0285855e
parentb58329e97de94a8cee2422eddb73235b538ccbd6
There was a corner case where linking the inp to the state key did
work in pf.  The function pf_inp_link() takes the state key from
the mbuf and not the one pf_find_state() has just found.  Introduce
a new function pf_state_key_link_inpcb() that links the given state
key and inpcb together with some sanity checks.
OK sashan@
sys/net/pf.c