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:
parent
67fd172767
commit
794a349c6f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user