platform: add g_return_val_if_fail() check to nm_platform_sysctl_set_ip6_hop_limit_safe()

This commit is contained in:
Thomas Haller 2015-06-17 15:00:10 +02:00
parent 5e8182279a
commit fba17e5c84

View file

@ -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;