summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2008-07-22 09:26:40 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2008-07-22 09:26:40 +0000
commit9a93d9950346a4fdec15133c3583568f7e8e28a8 (patch)
tree83bfc1cc36c509dd8dea05e18a88cc02b40240b3
parent77fd51f857d83a186665d92c5f3d7df2129825a7 (diff)
Assign the struct size to sin6_len instead of sin6_family.
ok hshoexer claudio mpf henning
-rw-r--r--sys/netinet/ip_spd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_spd.c b/sys/netinet/ip_spd.c
index 0c18fc307d3..a9414995ae9 100644
--- a/sys/netinet/ip_spd.c
+++ b/sys/netinet/ip_spd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_spd.c,v 1.56 2008/06/11 18:20:54 blambert Exp $ */
+/* $OpenBSD: ip_spd.c,v 1.57 2008/07/22 09:26:39 bluhm Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
@@ -189,7 +189,7 @@ ipsp_spd_lookup(struct mbuf *m, int af, int hlen, int *error, int direction,
(caddr_t) &(ddst->sen_ip6_proto));
sdst.sin6.sin6_family = ssrc.sin6.sin6_family = AF_INET6;
- sdst.sin6.sin6_len = ssrc.sin6.sin6_family =
+ sdst.sin6.sin6_len = ssrc.sin6.sin6_len =
sizeof(struct sockaddr_in6);
in6_recoverscope(&ssrc.sin6, &ddst->sen_ip6_src, NULL);
in6_recoverscope(&sdst.sin6, &ddst->sen_ip6_dst, NULL);