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:
Gleb Smirnoff 2018-03-22 05:07:57 +00:00
parent 1b4df78b42
commit 3108a71a34

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;