Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 May 2018 05:55:31 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333868 - head/sys/netinet
Message-ID:  <201805190555.w4J5tVDY078579@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Sat May 19 05:55:31 2018
New Revision: 333868
URL: https://svnweb.freebsd.org/changeset/base/333868

Log:
  tcp sysctl fix may be uninitialized

Modified:
  head/sys/netinet/tcp_subr.c

Modified: head/sys/netinet/tcp_subr.c
==============================================================================
--- head/sys/netinet/tcp_subr.c	Sat May 19 05:55:00 2018	(r333867)
+++ head/sys/netinet/tcp_subr.c	Sat May 19 05:55:31 2018	(r333868)
@@ -539,9 +539,9 @@ sysctl_net_inet_list_func_info(SYSCTL_HANDLER_ARGS)
 	 * the list matches what we have recorded.
 	 */
 	rw_rlock(&tcp_function_lock);
-#ifdef INVARIANTS
+
 	cnt = 0;
-#else
+#ifndef INVARIANTS
 	if (req->oldptr == NULL) {
 		cnt = tcp_fb_cnt;
 		goto skip_loop;
@@ -1779,7 +1779,7 @@ tcp_discardcb(struct tcpcb *tp)
 #ifdef INET6
 	int isipv6 = (inp->inp_vflag & INP_IPV6) != 0;
 #endif /* INET6 */
-	int released;
+	int released __unused;
 
 	INP_WLOCK_ASSERT(inp);
 



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