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-12 10:59:10 -0500 |
commit | 67d971cff8b345311dc2317f112dd3c1b4a7fadf (patch) | |
tree | 4655f1f13195c7d322ec62eb28c4041daa9108f9 /sys | |
parent | 3938f6f800c9999a8a88141284b1841b71cd8af0 (diff) | |
download | FreeBSD-src-67d971cff8b345311dc2317f112dd3c1b4a7fadf.zip FreeBSD-src-67d971cff8b345311dc2317f112dd3c1b4a7fadf.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
(cherry picked from commit 197b7eb2f8155f5426a8399ee2316bc6363484bc)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_ipsec.c | 4 | ||||
-rw-r--r-- | sys/netinet6/ip6_ipsec.c | 4 |
2 files changed, 2 insertions, 6 deletions
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: 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: |