1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274455

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