Fix use-after-free in ipcomp_output() introduced by previous commit.
authorbluhm <bluhm@openbsd.org>
Sat, 23 Oct 2021 22:00:51 +0000 (22:00 +0000)
committerbluhm <bluhm@openbsd.org>
Sat, 23 Oct 2021 22:00:51 +0000 (22:00 +0000)
commit35d9e964c12b0c99dbb1c4ae96876e52f250bab0
treeedc871e73a23fbc32b6d76b144fa755762f919b9
parentcd90260ed0fc96ef97f9bd19de76165838030c0b
Fix use-after-free in ipcomp_output() introduced by previous commit.
Retrieve ilen and olen from crypto descriptors before freeing them.
Found by regress/sys/netinet/ipsec.
OK mpi@
sys/netinet/ip_ipcomp.c