From: bluhm Date: Tue, 22 Jul 2008 09:26:39 +0000 (+0000) Subject: Assign the struct size to sin6_len instead of sin6_family. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d118ad8ce3321970b3d3df13a18977a686db4206;p=openbsd Assign the struct size to sin6_len instead of sin6_family. ok hshoexer claudio mpf henning --- 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);