mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-15 01:20:30 +01:00
ip6: prevent overflows in RDNSS and DNSSL timeout calculations (rh #689291)
This commit is contained in:
parent
4045a91ab9
commit
801beb4b4d
1 changed files with 4 additions and 4 deletions
|
|
@ -308,9 +308,9 @@ set_rdnss_timeout (NMIP6Device *device)
|
|||
}
|
||||
|
||||
if (expires) {
|
||||
device->rdnss_timeout_id = g_timeout_add_seconds (expires - now,
|
||||
rdnss_expired,
|
||||
device);
|
||||
device->rdnss_timeout_id = g_timeout_add_seconds (MIN (expires - now, G_MAXUINT32 - 1),
|
||||
rdnss_expired,
|
||||
device);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -363,7 +363,7 @@ set_dnssl_timeout (NMIP6Device *device)
|
|||
}
|
||||
|
||||
if (expires) {
|
||||
device->dnssl_timeout_id = g_timeout_add_seconds (expires - now,
|
||||
device->dnssl_timeout_id = g_timeout_add_seconds (MIN (expires - now, G_MAXUINT32 - 1),
|
||||
dnssl_expired,
|
||||
device);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue