From 67d971cff8b345311dc2317f112dd3c1b4a7fadf Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Wed, 11 May 2016 12:17:38 -0500 Subject: MFC r282047: Remove now unneded KEY_FREESP() for case when ipsec[46]_process_packet() returns EJUSTRETURN. Sponsored by: Yandex LLC TAG: IPSEC-HEAD (cherry picked from commit 197b7eb2f8155f5426a8399ee2316bc6363484bc) --- sys/netinet/ip_ipsec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/netinet') diff --git a/sys/netinet/ip_ipsec.c b/sys/netinet/ip_ipsec.c index 2e43e43..df25235 100644 --- a/sys/netinet/ip_ipsec.c +++ b/sys/netinet/ip_ipsec.c @@ -240,9 +240,7 @@ ip_ipsec_output(struct mbuf **m, struct inpcb *inp, int *error) /* No IPsec processing for this packet. */ } done: - if (sp != NULL) - KEY_FREESP(&sp); - return 0; + return (0); reinjected: return (-1); bad: -- cgit v1.1