Set the proper direction to check for policies in this one case.

Pointed out by: eri
Sponsored by:	Rubicon Communications (Netgate)
This commit is contained in:
George V. Neville-Neil 2015-10-29 21:26:32 +00:00
parent 35aafbeda8
commit 02b90dbf45
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290165

View File

@ -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;
/*