HomeFreeBSD

fib_dxr: set fib_data field in struct dxr_aux early enough

Description

fib_dxr: set fib_data field in struct dxr_aux early enough

Previously it was possible for dxr_build() to return with da->fd
unset in case of range_tbl or x_tbl malloc() failures. This
may have led to NULL ptr dereferencing in dxr_change_rib_batch().

MFC after: 1 week

PR: 278422

Details

Provenance
zecAuthored on May 7 2024, 3:44 PM
Parents
rG4aa275f12da4: fib_dxr: s/KASSERT/MPASS/
Branches
Unknown
Tags
Unknown