Fix uninitialized memory access in pfkeyv2_sysctl().
authormvs <mvs@openbsd.org>
Fri, 17 May 2024 18:58:26 +0000 (18:58 +0000)
committermvs <mvs@openbsd.org>
Fri, 17 May 2024 18:58:26 +0000 (18:58 +0000)
commit1adf4b76b7ecd1118407bf5fe11b267818eadb57
tree24e6e63fbe662436260926e372a61bfe50406984
parentd635388b71e707340b5c73a2a98c208bc1fe72b9
Fix uninitialized memory access in pfkeyv2_sysctl().

pfkeyv2_sysctl() reads the SA type from uninitialized memory if it is
not provided by the caller of sysctl(2) because of a missing length
check.

From Carsten Beckmann.

ok bluhm
sys/net/pfkeyv2.c