From ac97bf37dd377f7997359901c5e8feed27fa6d9f Mon Sep 17 00:00:00 2001 From: mpi Date: Mon, 12 Feb 2018 15:53:05 +0000 Subject: [PATCH] Use IP6_SOIIKEY_LEN instead of hardcoded value. from semarie@, ok benno@ --- sys/netinet6/ip6_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 60006380e9f..597624d9eba 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.212 2018/02/10 05:52:08 florian Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.213 2018/02/12 15:53:05 mpi Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -1374,7 +1374,7 @@ int ip6_sysctl_soiikey(void *oldp, size_t *oldlenp, void *newp, size_t newlen) { struct ifnet *ifp; - uint8_t oldkey[16]; + uint8_t oldkey[IP6_SOIIKEY_LEN]; int error; error = suser(curproc, 0); -- 2.20.1