mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-10 23:08:28 +02:00
ndisc: fix wrong array in _array_set_size_max calls during cleanup
The clean_routes(), clean_dns_servers() and clean_dns_domains()
functions all pass rdata->gateways to _array_set_size_max() instead of
their respective arrays.
Fixes: c2c8c67d8c ('ndisc: rate limit number of accepted RA data to track')
This commit is contained in:
parent
e95d775569
commit
97282d1e50
1 changed files with 3 additions and 3 deletions
|
|
@ -1596,7 +1596,7 @@ clean_routes(NMNDisc *ndisc, gint64 now_msec, NMNDiscConfigMap *changed, gint64
|
|||
g_array_set_size(rdata->routes, j);
|
||||
}
|
||||
|
||||
if (_array_set_size_max(rdata->gateways, _SIZE_MAX_ROUTES))
|
||||
if (_array_set_size_max(rdata->routes, _SIZE_MAX_ROUTES))
|
||||
*changed |= NM_NDISC_CONFIG_ROUTES;
|
||||
}
|
||||
|
||||
|
|
@ -1665,7 +1665,7 @@ clean_dns_servers(NMNDisc *ndisc, gint64 now_msec, NMNDiscConfigMap *changed, gi
|
|||
g_array_set_size(rdata->dns_servers, j);
|
||||
}
|
||||
|
||||
if (_array_set_size_max(rdata->gateways, _SIZE_MAX_DNS_SERVERS))
|
||||
if (_array_set_size_max(rdata->dns_servers, _SIZE_MAX_DNS_SERVERS))
|
||||
*changed |= NM_NDISC_CONFIG_DNS_SERVERS;
|
||||
}
|
||||
|
||||
|
|
@ -1700,7 +1700,7 @@ clean_dns_domains(NMNDisc *ndisc, gint64 now_msec, NMNDiscConfigMap *changed, gi
|
|||
g_array_set_size(rdata->dns_domains, j);
|
||||
}
|
||||
|
||||
if (_array_set_size_max(rdata->gateways, _SIZE_MAX_DNS_DOMAINS))
|
||||
if (_array_set_size_max(rdata->dns_domains, _SIZE_MAX_DNS_DOMAINS))
|
||||
*changed |= NM_NDISC_CONFIG_DNS_DOMAINS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue