svn commit: r308358 - head/sys/netinet

Andrey V. Elsukov ae at FreeBSD.org
Sun Nov 6 02:33:05 UTC 2016


Author: ae
Date: Sun Nov  6 02:33:04 2016
New Revision: 308358
URL: https://svnweb.freebsd.org/changeset/base/308358

Log:
  Initialize ip6 pointer before use.
  
  PR:		214169
  MFC after:	1 week

Modified:
  head/sys/netinet/tcp_subr.c

Modified: head/sys/netinet/tcp_subr.c
==============================================================================
--- head/sys/netinet/tcp_subr.c	Sun Nov  6 00:35:43 2016	(r308357)
+++ head/sys/netinet/tcp_subr.c	Sun Nov  6 02:33:04 2016	(r308358)
@@ -2731,6 +2731,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));


More information about the svn-src-head mailing list