]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the problem with O_LIMIT states introduced in r344018.
authorae <ae@FreeBSD.org>
Thu, 7 Mar 2019 04:40:44 +0000 (04:40 +0000)
committerae <ae@FreeBSD.org>
Thu, 7 Mar 2019 04:40:44 +0000 (04:40 +0000)
commita4f88db4df453932ae273b3ac1587d1284f5b1f3
treeab639a81d7966ff0a0befe37876558670ce01045
parent4a7ea815574d610213e35c4e0888b9bf0a1c15b6
Fix the problem with O_LIMIT states introduced in r344018.

dyn_install_state() uses `rule` pointer when it creates state.
For O_LIMIT states this pointer actually is not struct ip_fw,
it is pointer to O_LIMIT_PARENT state, that keeps actual pointer
to ip_fw parent rule. Thus we need to cache rule id and number
before calling dyn_get_parent_state(), so we can use them later
when the `rule` pointer is overrided.

PR: 236292
MFC after: 3 days
sys/netpfil/ipfw/ip_fw_dynamic.c