summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-12-20 05:37:48 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-12-20 05:37:48 +0000
commit3807aba9c447b3f943d2737235ab610f67b6fb92 (patch)
treec4c3bff6637bb080037decaa1c58db9846df1f6f /sys
parent14acc384a6fb8cdcce3b6da66b74af90609b1359 (diff)
sockaddr_in6 is padded to 32 bytes.
Diffstat (limited to 'sys')
-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))