Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2016 16:20:06 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r308613 - stable/11/sys/netinet
Message-ID:  <201611131620.uADGK610082330@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Sun Nov 13 16:20:06 2016
New Revision: 308613
URL: https://svnweb.freebsd.org/changeset/base/308613

Log:
  MFC r308358:
    Initialize ip6 pointer before use.
  
    PR:		214169

Modified:
  stable/11/sys/netinet/tcp_subr.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/tcp_subr.c
==============================================================================
--- stable/11/sys/netinet/tcp_subr.c	Sun Nov 13 13:31:23 2016	(r308612)
+++ stable/11/sys/netinet/tcp_subr.c	Sun Nov 13 16:20:06 2016	(r308613)
@@ -2711,6 +2711,7 @@ tcp_signature_do_compute(struct mbuf *m,
 	 * Note: Upper-Layer Packet Length comes before Next Header.
 	 */
 	case (IPV6_VERSION >> 4):
+		ip6 = mtod(m, struct ip6_hdr *);
 		in6 = ip6->ip6_src;
 		in6_clearscope(&in6);
 		MD5Update(&ctx, (char *)&in6, sizeof(struct in6_addr));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611131620.uADGK610082330>