mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 00:00:38 +01:00
ndisc: fix truncation of excess RA data
Fixes: c2c8c67d8c ('ndisc: rate limit number of accepted RA data to track')
This commit is contained in:
parent
359762b2c9
commit
3d910a9c3d
1 changed files with 3 additions and 3 deletions
|
|
@ -1724,7 +1724,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;
|
||||
}
|
||||
|
||||
|
|
@ -1793,7 +1793,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;
|
||||
}
|
||||
|
||||
|
|
@ -1828,7 +1828,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