svn commit: r282047 - in head/sys: netinet netinet6

Andrey V. Elsukov ae at FreeBSD.org
Mon Apr 27 01:11:10 UTC 2015


Author: ae
Date: Mon Apr 27 01:11:09 2015
New Revision: 282047
URL: https://svnweb.freebsd.org/changeset/base/282047

Log:
  Remove now unneded KEY_FREESP() for case when ipsec[46]_process_packet()
  returns EJUSTRETURN.
  
  Sponsored by:	Yandex LLC

Modified:
  head/sys/netinet/ip_ipsec.c
  head/sys/netinet6/ip6_ipsec.c

Modified: head/sys/netinet/ip_ipsec.c
==============================================================================
--- head/sys/netinet/ip_ipsec.c	Mon Apr 27 00:55:56 2015	(r282046)
+++ head/sys/netinet/ip_ipsec.c	Mon Apr 27 01:11:09 2015	(r282047)
@@ -237,9 +237,7 @@ ip_ipsec_output(struct mbuf **m, struct 
 		/* No IPsec processing for this packet. */
 	}
 done:
-	if (sp != NULL)
-		KEY_FREESP(&sp);
-	return 0;
+	return (0);
 reinjected:
 	return (-1);
 bad:

Modified: head/sys/netinet6/ip6_ipsec.c
==============================================================================
--- head/sys/netinet6/ip6_ipsec.c	Mon Apr 27 00:55:56 2015	(r282046)
+++ head/sys/netinet6/ip6_ipsec.c	Mon Apr 27 01:11:09 2015	(r282047)
@@ -251,9 +251,7 @@ ip6_ipsec_output(struct mbuf **m, struct
 		/* No IPsec processing for this packet. */
 	}
 done:
-	if (sp != NULL)
-		KEY_FREESP(&sp);
-	return 0;
+	return (0);
 reinjected:
 	return (-1);
 bad:


More information about the svn-src-head mailing list