From d87f25ceb8bab2db08f3d252c99dd14133b99941 Mon Sep 17 00:00:00 2001 From: Rahul Rajesh Date: Tue, 17 Feb 2026 15:58:09 -0500 Subject: [PATCH] device: fix vxlan create_and_realize Assert that remote and local will be valid in this function since it will be verified in verify function in connection profile. --- src/core/devices/nm-device-vxlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/devices/nm-device-vxlan.c b/src/core/devices/nm-device-vxlan.c index 4058287c00..87844e6f54 100644 --- a/src/core/devices/nm-device-vxlan.c +++ b/src/core/devices/nm-device-vxlan.c @@ -176,14 +176,14 @@ create_and_realize(NMDevice *device, if (str) { if (!nm_inet_parse_bin(AF_INET, str, NULL, &props.local) && !nm_inet_parse_bin(AF_INET6, str, NULL, &props.local6)) - return FALSE; + return nm_assert_unreachable_val(FALSE); } str = nm_setting_vxlan_get_remote(s_vxlan); if (str) { if (!nm_inet_parse_bin(AF_INET, str, NULL, &props.group) && !nm_inet_parse_bin(AF_INET6, str, NULL, &props.group6)) - return FALSE; + return nm_assert_unreachable_val(FALSE); } props.tos = nm_setting_vxlan_get_tos(s_vxlan);