aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2015-10-29 21:26:32 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2015-10-29 21:26:32 +0000
commit02b90dbf45fa59b56f53f380b1b5a8fae7de0af3 (patch)
tree5f685a7e2264125a92e0abc0b807e21a04a6a22a /sys
parent35aafbeda815294700c0d71a1f4f526d5b935e4a (diff)
downloadsrc-02b90dbf45fa59b56f53f380b1b5a8fae7de0af3.tar.gz
src-02b90dbf45fa59b56f53f380b1b5a8fae7de0af3.zip
Set the proper direction to check for policies in this one case.
Pointed out by: eri Sponsored by: Rubicon Communications (Netgate)
Notes
Notes: svn path=/head/; revision=290165
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ipsec.c2
1 files changed, 1 insertions, 1 deletions
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;
/*