Avoid double free in isakmpd
authortb <tb@openbsd.org>
Tue, 28 Mar 2023 16:32:42 +0000 (16:32 +0000)
committertb <tb@openbsd.org>
Tue, 28 Mar 2023 16:32:42 +0000 (16:32 +0000)
commit822916020a4c2b9a03d609cd1679d54dfd0e46ab
treede718e122370c0b6a965013f51de72db987b84f8
parentde422abdef7a8c108370a1ae402de1edcf165af2
Avoid double free in isakmpd

In the unlikely event that EC_KEY_check_key() in ec_init() fails,
group->ec would be freed first in ec_init() then in group_free().

Same problem was fixed in iked/dh.c r1.31 (where it originally came
from).

ok jsg mbuhl
sbin/isakmpd/dh.c