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
This commit is contained in:
Andrey V. Elsukov 2014-11-12 22:58:52 +00:00
parent 67fd172767
commit 794a349c6f

View File

@ -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;
}
}