svn commit: r333868 - head/sys/netinet

Matt Macy mmacy at FreeBSD.org
Sat May 19 05:55:32 UTC 2018


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);
 


More information about the svn-src-head mailing list