svn commit: r290165 - head/sys/netinet

George V. Neville-Neil gnn at FreeBSD.org
Thu Oct 29 21:26:33 UTC 2015


Author: gnn
Date: Thu Oct 29 21:26:32 2015
New Revision: 290165
URL: https://svnweb.freebsd.org/changeset/base/290165

Log:
  Set the proper direction to check for policies in this one case.
  
  Pointed out by: eri
  Sponsored by:	Rubicon Communications (Netgate)

Modified:
  head/sys/netinet/ip_ipsec.c

Modified: head/sys/netinet/ip_ipsec.c
==============================================================================
--- head/sys/netinet/ip_ipsec.c	Thu Oct 29 21:25:46 2015	(r290164)
+++ head/sys/netinet/ip_ipsec.c	Thu Oct 29 21:26:32 2015	(r290165)
@@ -159,7 +159,7 @@ ip_ipsec_output(struct mbuf **m, struct 
 {
 	struct secpolicy *sp;
 
-	if (!key_havesp(IPSEC_DIR_INBOUND))
+	if (!key_havesp(IPSEC_DIR_OUTBOUND))
 		return 0;
 
 	/*


More information about the svn-src-head mailing list