core: fix NMDedupMultiIndex's _dict_idx_entries_hash()

Don't overwrite @h.

Fixes: f9202c2ac1
This commit is contained in:
Thomas Haller 2017-07-10 16:34:44 +02:00
parent 67bc29bed1
commit 930da031b2

View file

@ -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;
}