mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-12 17:00:33 +01:00
core/platform: fix wrong warning log in nm-linux-platform
According to documentation, nl_rtgen_request() returns 0 on success. Due to a bug (fixed upstream) in older libnl versions, nl_rtgen_request() returns the number of bytes sent, which caused logging although succeeding. Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
2e1db48e71
commit
6c2f96421b
1 changed files with 1 additions and 1 deletions
|
|
@ -2849,7 +2849,7 @@ setup (NMPlatform *platform)
|
|||
/* request all IPv6 addresses (hopeing that there is at least one), to check for
|
||||
* the IFA_FLAGS attribute. */
|
||||
nle = nl_rtgen_request (priv->nlh_event, RTM_GETADDR, AF_INET6, NLM_F_DUMP);
|
||||
if (nle != 0)
|
||||
if (nle < 0)
|
||||
nm_log_warn (LOGD_PLATFORM, "Netlink error: requesting RTM_GETADDR failed with %s", nl_geterror (nle));
|
||||
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue