From 794a349c6f54febe41eaab0d33f1c735c37b331b Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Wed, 12 Nov 2014 22:58:52 +0000 Subject: [PATCH] We don't return sp pointer, thus NULL assignment isn't needed. And reference to sp will be freed at the end. MFC after: 1 week Sponsored by: Yandex LLC --- sys/netinet6/ip6_ipsec.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/netinet6/ip6_ipsec.c b/sys/netinet6/ip6_ipsec.c index e3e67816aadf..3e6d4df71ac1 100644 --- a/sys/netinet6/ip6_ipsec.c +++ b/sys/netinet6/ip6_ipsec.c @@ -273,11 +273,7 @@ ip6_ipsec_output(struct mbuf **m, struct inpcb *inp, int *flags, int *error, /* * No IPsec processing is needed, free * reference to SP. - * - * NB: null pointer to avoid free at - * done: below. */ - KEY_FREESP(&sp), sp = NULL; goto done; } }