about summary refs log tree commit diff
path: root/src/libnm-core-impl/nm-setting-tun.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2025-08-01 19:15:18 +0200
committerMichael Biebl <biebl@debian.org>2025-08-01 19:15:18 +0200
commit43a9f1ee48d7f7b9f4447e9fe17a4274c6fad67f (patch)
tree5f570d79dfc6eb4c736b708a99b3b2e5ed7608d1 /src/libnm-core-impl/nm-setting-tun.c
parente0a3970cd0ea64b36773deae96366bbe7d1efbee (diff)
parent7e9091a5960f67a84787c03153324915220e4816 (diff)
Update upstream source from tag 'upstream/1.54.0'
Update to upstream version '1.54.0'
with Debian dir efd253369d835d8f9c404eef4f97d88deb9625fe
Diffstat (limited to 'src/libnm-core-impl/nm-setting-tun.c')
-rw-r--r--src/libnm-core-impl/nm-setting-tun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnm-core-impl/nm-setting-tun.c b/src/libnm-core-impl/nm-setting-tun.c
index 05460104..cac0f10b 100644
--- a/src/libnm-core-impl/nm-setting-tun.c
+++ b/src/libnm-core-impl/nm-setting-tun.c
@@ -166,7 +166,7 @@ verify(NMSetting *setting, NMConnection *connection, GError **error)
     }
 
     if (priv->owner) {
-        if (_nm_utils_ascii_str_to_int64(priv->owner, 10, 0, G_MAXINT32, -1) == -1) {
+        if (_nm_utils_ascii_str_to_int64(priv->owner, 10, 0, G_MAXUINT32 - 1, -1) == -1) {
             g_set_error(error,
                         NM_CONNECTION_ERROR,
                         NM_CONNECTION_ERROR_INVALID_PROPERTY,
@@ -178,7 +178,7 @@ verify(NMSetting *setting, NMConnection *connection, GError **error)
     }
 
     if (priv->group) {
-        if (_nm_utils_ascii_str_to_int64(priv->group, 10, 0, G_MAXINT32, -1) == -1) {
+        if (_nm_utils_ascii_str_to_int64(priv->group, 10, 0, G_MAXUINT32 - 1, -1) == -1) {
             g_set_error(error,
                         NM_CONNECTION_ERROR,
                         NM_CONNECTION_ERROR_INVALID_PROPERTY,