mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 03:00:29 +01:00
connectivity: skip unexpected addr family from resolved response
In practice, systemd-resolved will give us always AF_INET/AF_INET6. Still, check for that.
This commit is contained in:
parent
118561e284
commit
593d08db81
1 changed files with 3 additions and 0 deletions
|
|
@ -738,6 +738,9 @@ resolve_cb(GObject *object, GAsyncResult *res, gpointer user_data)
|
|||
|
||||
g_variant_get_child(addresses, i, "(ii@ay)", &ifindex, &addr_family, &address);
|
||||
|
||||
if (!NM_IN_SET(addr_family, AF_INET, AF_INET6))
|
||||
continue;
|
||||
|
||||
if (cb_data->addr_family != AF_UNSPEC && cb_data->addr_family != addr_family)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue