Avoid a potential double free in group_free()
authortb <tb@openbsd.org>
Mon, 13 Dec 2021 18:06:56 +0000 (18:06 +0000)
committertb <tb@openbsd.org>
Mon, 13 Dec 2021 18:06:56 +0000 (18:06 +0000)
commitae5d40d61be697d11b976d3cc1df9f33783df2e5
tree9cea85a441b25acd23d8f9756e9ec9c10a321b82
parent498c7b5e98c82ca5a0055f676f2a6e4214e2d9a8
Avoid a potential double free in group_free()

In the unlikely event that EC_KEY_check_key() in ec_init() fails,
the group would be freed twice: once in ec_init(), and later in
group_free().

ok tobhe
sbin/iked/dh.c