]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netgraph/ng_checksum: Fix double free error
authorLutz Donnerhacke <donner@FreeBSD.org>
Sat, 15 May 2021 09:32:57 +0000 (11:32 +0200)
committerLutz Donnerhacke <donner@FreeBSD.org>
Sun, 16 May 2021 17:39:51 +0000 (19:39 +0200)
commit687e510e5ce32fddf46a9dc1d517ccc8a8e25581
treeb76658f0b1440ece9117bf555be835cc205a1cf7
parent8252fe56a0edc95f55b203424a8f2f957959e7a4
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
sys/netgraph/ng_checksum.c