mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 05:50:06 +01:00
ndisc: fix logic to limit the number of addresses
Fixes:c2c8c67d8c('ndisc: rate limit number of accepted RA data to track') (cherry picked from commiteb7917a387)
This commit is contained in:
parent
f78dca964f
commit
8ae10b4148
1 changed files with 1 additions and 1 deletions
|
|
@ -1490,7 +1490,7 @@ clean_addresses(NMNDisc *ndisc, gint64 now_msec, NMNDiscConfigMap *changed, gint
|
|||
g_array_set_size(rdata->addresses, j);
|
||||
}
|
||||
|
||||
if (_array_set_size_max(rdata->gateways, priv->config.max_addresses))
|
||||
if (_array_set_size_max(rdata->addresses, priv->config.max_addresses))
|
||||
*changed |= NM_NDISC_CONFIG_ADDRESSES;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue