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
This commit is contained in:
glebius 2018-03-22 05:07:57 +00:00
parent c8d6e27e4b
commit 3ef748bde0

View File

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