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().

Approved by: re (cperciva)
MFC after: 1 week

PR: 278422
(cherry picked from commit 0418d7a0903725ade71ae77c4ff900010a93a185)

Details

Provenance
zecAuthored on May 7 2024, 3:44 PM
Parents
rG207e8cef0b36: ftpd: stop using -g flag for /bin/ls
Branches
Unknown
Tags
Unknown