HomeFreeBSD

netlink: fix interface dump.

Description

netlink: fix interface dump.

The current code missed interface addition when reallocating
temporary buffer.
Tweak the code to perform the reallocation first and add
interface afterwards unconditionally.

Reported by: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
MFC after: 3 days

(cherry picked from commit 86fd0bdba540132ae298457e160b651f61d1db6b)

Details

Provenance
melifaroAuthored on Feb 16 2023, 1:17 PM
Parents
rGed363bbc624e: fibs: restrict jail_attach(2) if process fibnum >= numfibs in the jail.
Branches
Unknown
Tags
Unknown