]> 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)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Mon, 20 Feb 2023 14:33:28 +0000 (14:33 +0000)
commita800622765b1e7cab79fa857e9a671e6c0c1ccec
tree9977b74f13c970c4fda36a9ae4938271cff285e4
parented363bbc624e3a69da1867e86f979b30668a0934
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)
sys/netlink/route/iface.c
tests/sys/netlink/test_rtnl_iface.py