mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 06:00:08 +01:00
platform: add g_return_val_if_fail() check to nm_platform_sysctl_set_ip6_hop_limit_safe()
This commit is contained in:
parent
5e8182279a
commit
fba17e5c84
1 changed files with 2 additions and 0 deletions
|
|
@ -256,6 +256,8 @@ nm_platform_sysctl_set_ip6_hop_limit_safe (NMPlatform *self, const char *iface,
|
|||
const char *path;
|
||||
gint64 cur;
|
||||
|
||||
_CHECK_SELF (self, klass, FALSE);
|
||||
|
||||
/* the hop-limit provided via RA is uint8. */
|
||||
if (value > 0xFF)
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue