Fix out-of-order string operations resulting in a wrongly calculated
authortobhe <tobhe@openbsd.org>
Sun, 6 Nov 2022 11:11:47 +0000 (11:11 +0000)
committertobhe <tobhe@openbsd.org>
Sun, 6 Nov 2022 11:11:47 +0000 (11:11 +0000)
commit9c99ac36faeb4813970fb96a9e19e01214d5b3bb
tree284b1c2db07db841ea4ba198a187dc197ac54c05
parent72c0b93be718ff7e058072bde0ad1e4fc29d5d66
Fix out-of-order string operations resulting in a wrongly calculated
string size that could lead to a buffer overflow in ikev2_print_id().

Found by and fix from dropk1ck on github (issue #90)
ok patrick@ mbuhl@
sbin/iked/ikev2.c