diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-05-11 12:17:38 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-05-11 17:02:13 -0500 |
commit | 197b7eb2f8155f5426a8399ee2316bc6363484bc (patch) | |
tree | e819a08c18107ab83b8bc4e3f1f4301ab4f1ca81 /sys/netinet6/ip6_ipsec.c | |
parent | af812400c1790b6d7e446b3e282c3a22ed7e3a09 (diff) | |
download | FreeBSD-src-197b7eb2f8155f5426a8399ee2316bc6363484bc.zip FreeBSD-src-197b7eb2f8155f5426a8399ee2316bc6363484bc.tar.gz |
MFC r282047:
Remove now unneded KEY_FREESP() for case when ipsec[46]_process_packet()
returns EJUSTRETURN.
Sponsored by: Yandex LLC
TAG: IPSEC-HEAD
Diffstat (limited to 'sys/netinet6/ip6_ipsec.c')
-rw-r--r-- | sys/netinet6/ip6_ipsec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_ipsec.c b/sys/netinet6/ip6_ipsec.c index ac49275..19a0853 100644 --- a/sys/netinet6/ip6_ipsec.c +++ b/sys/netinet6/ip6_ipsec.c @@ -250,9 +250,7 @@ ip6_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: |