diff options
| -rw-r--r-- | sys/netinet/tcp_input.c | 5 | ||||
| -rw-r--r-- | sys/netinet/tcp_reass.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 32567ca96c73..29e36c678018 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -574,11 +574,14 @@ findpcb: } #endif #ifdef FAST_IPSEC +#ifdef INET6 if (isipv6) { if (inp != NULL && ipsec6_in_reject(m, inp)) { goto drop; } - } else if (inp != NULL && ipsec4_in_reject(m, inp)) { + } else +#endif + if (inp != NULL && ipsec4_in_reject(m, inp)) { goto drop; } #endif /*FAST_IPSEC*/ diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 32567ca96c73..29e36c678018 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -574,11 +574,14 @@ findpcb: } #endif #ifdef FAST_IPSEC +#ifdef INET6 if (isipv6) { if (inp != NULL && ipsec6_in_reject(m, inp)) { goto drop; } - } else if (inp != NULL && ipsec4_in_reject(m, inp)) { + } else +#endif + if (inp != NULL && ipsec4_in_reject(m, inp)) { goto drop; } #endif /*FAST_IPSEC*/ |
