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.
This commit is contained in:
Rahul Rajesh 2026-02-17 15:58:09 -05:00
parent 54a4b42c05
commit d87f25ceb8

View file

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