Remove `ids' from `ipsec_ids_tree' while following ipsp_ids_insert()
authormvs <mvs@openbsd.org>
Mon, 19 Jul 2021 14:49:55 +0000 (14:49 +0000)
committermvs <mvs@openbsd.org>
Mon, 19 Jul 2021 14:49:55 +0000 (14:49 +0000)
commit8ad3d730b52702c792d3fe733dbe367f95eeb17e
tree3e8f4f3e3f151b4bf32c63da4a76c01d778f7999
parent62d4fabc3bfd0d4e3debd20a6a2791c49c8bcab1
Remove `ids' from `ipsec_ids_tree' while following ipsp_ids_insert()
error path. This fixes use-after-free issue. Also fix debug message
mistype pointed by bluhm@ in error path.

ok millert@ bluhm@
sys/netinet/ip_ipsp.c