mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
netgraph/ng_checksum: Fix double free error
m_pullup(9) frees the mbuf(9) chain in the case of an allocation error. The mbuf chain must not be freed again in this case. PR: 255874 Submitted by: <lylgood@foxmail.com> Approved by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30273
This commit is contained in:
parent
8252fe56a0
commit
687e510e5c
1 changed files with 1 additions and 1 deletions
|
|
@ -682,9 +682,9 @@ bypass:
|
|||
return (error);
|
||||
|
||||
done:
|
||||
NG_FREE_M(m);
|
||||
drop:
|
||||
NG_FREE_ITEM(item);
|
||||
NG_FREE_M(m);
|
||||
|
||||
priv->stats.dropped++;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue