When ip6_fw_ctl() or soopt_mcopyout() return without success,
don't free mbuf. It is already freed by these routins. PR: kern/24248
This commit is contained in:
parent
b112c02bc6
commit
6c0bea350e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71305
@ -1560,7 +1560,7 @@ ip6_ctloutput(so, sopt)
|
||||
error = (*ip6_fw_ctl_ptr)(optname, mp);
|
||||
if (error == 0)
|
||||
error = soopt_mcopyout(sopt, m); /* XXX */
|
||||
if (m)
|
||||
if (error == 0 && m)
|
||||
m_freem(m);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user