]> git.ipfire.org Git - thirdparty/util-linux.git/commit
ul_nl_addr_dup(): Fix address comparison
authorStanislav Brabec <sbrabec@suse.cz>
Sun, 5 Oct 2025 00:29:00 +0000 (02:29 +0200)
committerStanislav Brabec <sbrabec@suse.cz>
Sun, 5 Oct 2025 00:34:54 +0000 (02:34 +0200)
commita5db8d0a9ed63969381feeee1eb0c3b39d32876b
tree696a2e9ca8c43ca3d49d52ee4f42cda69eb12b84
parenteb0e08a76e3ebd4571b957e727847060304c32bb
ul_nl_addr_dup(): Fix address comparison

When duplicating struct ul_nl_addr, set address to ifa_local, if it is set
to ifa_local in the source. This fixes the address for PtP IPv4 network
interfaces and avoids UL_NL_SOFT_ERROR during address removal.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
lib/netlink.c