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@
-/* $OpenBSD: ikev2.c,v 1.355 2022/10/24 15:52:39 tobhe Exp $ */
+/* $OpenBSD: ikev2.c,v 1.356 2022/11/06 11:11:47 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
strlcat(idstr, "/", idstrlen) >= idstrlen)
return (-1);
- idstr += strlen(idstr);
idstrlen -= strlen(idstr);
+ idstr += strlen(idstr);
switch (id->id_type) {
case IKEV2_ID_IPV4: