mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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
1b4df78b42
commit
3108a71a34
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue