]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netlink: fix interface dump.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Thu, 16 Feb 2023 13:17:58 +0000 (13:17 +0000)
committerEd Maste <emaste@FreeBSD.org>
Mon, 6 Mar 2023 19:37:56 +0000 (14:37 -0500)
commit4639f11c9fb74258d811b0c9aea4053ffc74f4c0
treeab851ae6d8c5f9648fdc2ef83b3ec317500b63c0
parentb2ca665cb4ba13062602580341cd9ecdee561951
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>
Approved by: re (cperciva)

(cherry picked from commit 86fd0bdba540132ae298457e160b651f61d1db6b)
(cherry picked from commit a800622765b1e7cab79fa857e9a671e6c0c1ccec)
sys/netlink/route/iface.c
tests/sys/netlink/test_rtnl_iface.py