summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-27 07:21:53 -0200
committerRenato Botelho <renato@netgate.com>2015-11-27 07:21:53 -0200
commit0ae7a646d9336f5df6f1cdc6be849701027961e5 (patch)
tree3487fb25637ec11cfa8bfe7ac2d9cea6420e338c /sys/netinet/tcp_subr.c
parentbf1649eb466516d7552e66f436d03048429334c2 (diff)
parent11814c27fd3b1050198f173bafda29c66d0c79d3 (diff)
downloadFreeBSD-src-0ae7a646d9336f5df6f1cdc6be849701027961e5.zip
FreeBSD-src-0ae7a646d9336f5df6f1cdc6be849701027961e5.tar.gz
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index ba2d834..7bdd573 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1947,7 +1947,8 @@ ipsec_hdrsiz_tcp(struct tcpcb *tp)
#endif
struct tcphdr *th;
- if ((tp == NULL) || ((inp = tp->t_inpcb) == NULL))
+ if ((tp == NULL) || ((inp = tp->t_inpcb) == NULL) ||
+ (!key_havesp(IPSEC_DIR_OUTBOUND)))
return (0);
m = m_gethdr(M_NOWAIT, MT_DATA);
if (!m)
OpenPOWER on IntegriCloud