Module Name: src Committed By: martin Date: Wed Sep 11 16:15:08 UTC 2024
Modified Files: src/sys/netinet6 [netbsd-10]: ip6_output.c Log Message: Pull up following revision(s) (requested by rin in ticket #826): sys/netinet6/ip6_output.c: revision 1.235 ip6_output: Initialize plen for ip6_hopopts_input. This funny little block in ip6_process_hopopts assumes it is initialized as and behaves differently depending on whether it's zero or not: https://nxr.netbsd.org/xref/src/sys/netinet6/ip6_input.c?r=1.227#976 In the other call site, it is initialized to ip6->ip6_plen: https://nxr.netbsd.org/xref/src/sys/netinet6/ip6_input.c?r=1.227#561 To generate a diff of this commit: cvs rdiff -u -r1.231.2.3 -r1.231.2.4 src/sys/netinet6/ip6_output.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/netinet6/ip6_output.c diff -u src/sys/netinet6/ip6_output.c:1.231.2.3 src/sys/netinet6/ip6_output.c:1.231.2.4 --- src/sys/netinet6/ip6_output.c:1.231.2.3 Sat Jul 20 14:34:24 2024 +++ src/sys/netinet6/ip6_output.c Wed Sep 11 16:15:07 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_output.c,v 1.231.2.3 2024/07/20 14:34:24 martin Exp $ */ +/* $NetBSD: ip6_output.c,v 1.231.2.4 2024/09/11 16:15:07 martin Exp $ */ /* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */ /* @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.231.2.3 2024/07/20 14:34:24 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip6_output.c,v 1.231.2.4 2024/09/11 16:15:07 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -754,7 +754,7 @@ ip6_output( * XXX Is this really necessary? */ if (ip6->ip6_nxt == IPPROTO_HOPOPTS) { - u_int32_t dummy1; /* XXX unused */ + u_int32_t dummy1 = 0; /* XXX unused */ u_int32_t dummy2; /* XXX unused */ int hoff = sizeof(struct ip6_hdr);