mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 00:40:19 +01:00
core: fix NMDedupMultiIndex's _dict_idx_entries_hash()
Don't overwrite @h.
Fixes: f9202c2ac1
This commit is contained in:
parent
67bc29bed1
commit
930da031b2
1 changed files with 1 additions and 2 deletions
|
|
@ -174,10 +174,9 @@ _dict_idx_entries_hash (const NMDedupMultiEntry *entry)
|
|||
h = 1914869417;
|
||||
|
||||
if (!lookup_head)
|
||||
h = idx_type->klass->idx_obj_id_hash (idx_type, obj);
|
||||
h = NM_HASH_COMBINE (h, idx_type->klass->idx_obj_id_hash (idx_type, obj));
|
||||
|
||||
h = NM_HASH_COMBINE (h, GPOINTER_TO_UINT (idx_type));
|
||||
h = NM_HASH_COMBINE (h, lookup_head);
|
||||
return h;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue