From c8bf2e2d32f7556cd1f7ba65c3b94bf2358a4b0a Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 2 Mar 2021 03:31:25 +0000 Subject: [PATCH] Increase the size of iov in pfkey_sa() to be large enough for all possible options. ok tobhe@ --- sbin/iked/pfkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/iked/pfkey.c b/sbin/iked/pfkey.c index a73fe0f1ccd..4ec1efc7847 100644 --- a/sbin/iked/pfkey.c +++ b/sbin/iked/pfkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkey.c,v 1.76 2021/01/29 21:26:06 tobhe Exp $ */ +/* $OpenBSD: pfkey.c,v 1.77 2021/03/02 03:31:25 jsg Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter @@ -40,7 +40,7 @@ #include "ikev2.h" #define ROUNDUP(x) (((x) + (PFKEYV2_CHUNK - 1)) & ~(PFKEYV2_CHUNK - 1)) -#define IOV_CNT 21 +#define IOV_CNT 27 #define PFKEYV2_CHUNK sizeof(uint64_t) #define PFKEY_REPLY_TIMEOUT 1000 -- 2.20.1