summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-03-13 14:19:08 +0000
committerpatrick <patrick@openbsd.org>2017-03-13 14:19:08 +0000
commitb0d5ea1d585f37f3e881b850573b2f5100647aa9 (patch)
tree5175c7e8675aa07c044d4ca6c5198e12db2ecec9 /sys/netinet/tcp_usrreq.c
parentfor each sysctl name, attach the variable name as seen by sysctl(8); (diff)
downloadwireguard-openbsd-b0d5ea1d585f37f3e881b850573b2f5100647aa9.tar.xz
wireguard-openbsd-b0d5ea1d585f37f3e881b850573b2f5100647aa9.zip
We need to call policy_ref() for policies that have refcounting
enabled. Refcounting is enabled when a policy is removed during 'ikectl reload' and still has SAs point to it. On IKESA rekeying such a policy will be referenced by the new IKESA, so we need to adjust the refcount -- otherwise the policies get free()d too early and we will crash at some point. ok markus@ mikeb@ reyk@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
0 files changed, 0 insertions, 0 deletions