summaryrefslogtreecommitdiff
path: root/sys/net/pfkeyv2_parsemessage.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/pfkeyv2_parsemessage.c')
-rw-r--r--sys/net/pfkeyv2_parsemessage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/pfkeyv2_parsemessage.c b/sys/net/pfkeyv2_parsemessage.c
index 568e2b0c1ef..09c3b633b4e 100644
--- a/sys/net/pfkeyv2_parsemessage.c
+++ b/sys/net/pfkeyv2_parsemessage.c
@@ -370,7 +370,7 @@ pfkeyv2_parsemessage(void *p, int len, void **headers)
#if INET6
case AF_INET6:
if (i != sizeof(struct sadb_address) +
- sizeof(struct sockaddr_in6))
+ sizeof(struct sockaddr_in6) + 4)
return EINVAL;
if (sa->sa_len != sizeof(struct sockaddr_in6))