diff options
author | ae <ae@FreeBSD.org> | 2015-04-27 01:11:09 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2015-04-27 01:11:09 +0000 |
commit | b38774ffc9433819aef27bdbb06516512d599588 (patch) | |
tree | 6b8c3732b37d7ac67382612b50acffeba02297b0 | |
parent | 5a6412a276aa9e59126f47bf366d7cff42bddcd5 (diff) | |
download | FreeBSD-src-b38774ffc9433819aef27bdbb06516512d599588.zip FreeBSD-src-b38774ffc9433819aef27bdbb06516512d599588.tar.gz |
Remove now unneded KEY_FREESP() for case when ipsec[46]_process_packet()
returns EJUSTRETURN.
Sponsored by: Yandex LLC
-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 321683e..47f683d 100644 --- a/sys/netinet/ip_ipsec.c +++ b/sys/netinet/ip_ipsec.c @@ -237,9 +237,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 c5f7a82..e6e16ed 100644 --- a/sys/netinet6/ip6_ipsec.c +++ b/sys/netinet6/ip6_ipsec.c @@ -251,9 +251,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: |