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:
parent
c8d6e27e4b
commit
3ef748bde0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user