mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 03:28:03 +02:00
platform: fix IPv4 address lookup in nm_platform_ip4_address_sync()
Fixes: 5fcca9ba3e
This commit is contained in:
parent
2f4dfd0f2e
commit
5414239988
1 changed files with 2 additions and 2 deletions
|
|
@ -3199,8 +3199,8 @@ nm_platform_ip4_address_sync (NMPlatform *self,
|
|||
goto delete_and_next;
|
||||
|
||||
if (G_UNLIKELY (!known_addresses_idx)) {
|
||||
known_addresses_idx = g_hash_table_new ((GHashFunc) nmp_object_hash,
|
||||
(GEqualFunc) nmp_object_equal);
|
||||
known_addresses_idx = g_hash_table_new ((GHashFunc) nmp_object_id_hash,
|
||||
(GEqualFunc) nmp_object_id_equal);
|
||||
}
|
||||
if (!nm_g_hash_table_insert (known_addresses_idx, (gpointer) o, (gpointer) o)) {
|
||||
/* duplicate? Keep only the first instance. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue