From 02b90dbf45fa59b56f53f380b1b5a8fae7de0af3 Mon Sep 17 00:00:00 2001 From: "George V. Neville-Neil" Date: Thu, 29 Oct 2015 21:26:32 +0000 Subject: [PATCH] Set the proper direction to check for policies in this one case. Pointed out by: eri Sponsored by: Rubicon Communications (Netgate) --- sys/netinet/ip_ipsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_ipsec.c b/sys/netinet/ip_ipsec.c index 77ce4c1a79ad..ac1e3d56d73c 100644 --- a/sys/netinet/ip_ipsec.c +++ b/sys/netinet/ip_ipsec.c @@ -159,7 +159,7 @@ ip_ipsec_output(struct mbuf **m, struct inpcb *inp, int *error) { struct secpolicy *sp; - if (!key_havesp(IPSEC_DIR_INBOUND)) + if (!key_havesp(IPSEC_DIR_OUTBOUND)) return 0; /*