pktopt may be null.
Approved by: re (rwatson)
This commit is contained in:
parent
2f234e2e99
commit
289b28bd99
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122970
@ -2417,6 +2417,9 @@ ip6_clearpktopts(pktopt, optname)
|
||||
{
|
||||
int needfree;
|
||||
|
||||
if (pktopt == NULL)
|
||||
return;
|
||||
|
||||
needfree = pktopt->needfree;
|
||||
|
||||
if (optname == -1 || optname == IPV6_PKTINFO) {
|
||||
|
Loading…
Reference in New Issue
Block a user