Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2018 05:07:58 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r331343 - head/sys/netinet
Message-ID:  <201803220507.w2M57wBa031308@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Thu Mar 22 05:07:57 2018
New Revision: 331343
URL: https://svnweb.freebsd.org/changeset/base/331343

Log:
  Fix LINT-NOINET build initializing local to false. This is
  a dead code, since for NOINET build isipv6 is always true,
  but this dead code makes it compilable.
  
  Reported by:	rpokala

Modified:
  head/sys/netinet/tcp_timewait.c

Modified: head/sys/netinet/tcp_timewait.c
==============================================================================
--- head/sys/netinet/tcp_timewait.c	Thu Mar 22 04:42:29 2018	(r331342)
+++ head/sys/netinet/tcp_timewait.c	Thu Mar 22 05:07:57 2018	(r331343)
@@ -244,12 +244,12 @@ tcp_twstart(struct tcpcb *tp)
 #ifdef INET6
 		if (isipv6)
 			local = in6_localaddr(&inp->in6p_faddr);
-#endif
-#if defined(INET6) && defined(INET)
 		else
 #endif
 #ifdef INET
 			local = in_localip(inp->inp_faddr);
+#else
+			local = false;
 #endif
 	} else
 		local = false;



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