mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 23:30:07 +01:00
dns: sd-resolved: fix hash table iteration
g_hash_table_iter_next() wants a (gpointer *), not an (int *). Fixes:f70ee67058('dns: sd-resolved: reset interface configuration on deactivation') (cherry picked from commit526b484be1)
This commit is contained in:
parent
e749a1a5db
commit
dedcba61ef
1 changed files with 3 additions and 1 deletions
|
|
@ -422,6 +422,7 @@ update(NMDnsPlugin * plugin,
|
|||
gs_free gpointer * interfaces_keys = NULL;
|
||||
guint interfaces_len;
|
||||
int ifindex;
|
||||
gpointer pointer;
|
||||
NMDnsIPConfigData *ip_data;
|
||||
GHashTableIter iter;
|
||||
guint i;
|
||||
|
|
@ -463,7 +464,8 @@ update(NMDnsPlugin * plugin,
|
|||
* resolved, and the current update doesn't contain that interface,
|
||||
* reset the resolved configuration for that ifindex. */
|
||||
g_hash_table_iter_init(&iter, priv->dirty_interfaces);
|
||||
while (g_hash_table_iter_next(&iter, (gpointer *) &ifindex, NULL)) {
|
||||
while (g_hash_table_iter_next(&iter, (gpointer *) &pointer, NULL)) {
|
||||
ifindex = GPOINTER_TO_INT(pointer);
|
||||
if (!g_hash_table_contains(interfaces, GINT_TO_POINTER(ifindex))) {
|
||||
InterfaceConfig ic;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue