HomeFreeBSD

Fix a possible bug found by inspection.

Description

Fix a possible bug found by inspection.

If the record is bogus (not likely), the code m_freem()d the record,
but did not set the pointer null. If there was a disconnect of the
socket after this failure, there could be another m_freem() done on
it.
Fixed by setting the pointer null after the m_freem().
Found by inspection of the code.

Details

Provenance
rmacklemAuthored on
Parents
rS362139: Linuxkpi uses the rb-tree structures without using their interfaces,
Branches
Unknown
Tags
Unknown