about summary refs log tree commit diff
path: root/src/platform
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2020-03-13 16:23:07 +0100
committerSebastien Bacher <seb128@ubuntu.com>2020-03-13 16:23:07 +0100
commit8f6881ac06714ef99cc470a03e7ac0ce1af49a16 (patch)
treefcb5e39f41b8135e4b3a41b6951f21473e10fa5e /src/platform
parentee7b95167028fdbb2a4bd32aa686e27817d8dfe0 (diff)
parentb012fa6e1d808e0736c009799c62d835cbfcc1dd (diff)
Merge branch 'upstream/latest' of https://salsa.debian.org/utopia-team/network-manager into upstream/latest
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/nmp-object.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/platform/nmp-object.h b/src/platform/nmp-object.h
index d52cc132..0c0796c3 100644
--- a/src/platform/nmp-object.h
+++ b/src/platform/nmp-object.h
@@ -496,10 +496,16 @@ _NMP_OBJECT_TYPE_IS_OBJ_WITH_IFINDEX (NMPObjectType obj_type)
 	case NMP_OBJECT_TYPE_LNK_VXLAN:
 	case NMP_OBJECT_TYPE_LNK_WIREGUARD:
 		return TRUE;
-	default:
-		nm_assert (nmp_class_from_type (obj_type));
+
+	case NMP_OBJECT_TYPE_ROUTING_RULE:
 		return FALSE;
+
+	case NMP_OBJECT_TYPE_UNKNOWN:
+	case __NMP_OBJECT_TYPE_LAST:
+		break;
 	}
+	nm_assert_not_reached ();
+	return FALSE;
 }
 
 #define NMP_OBJECT_CAST_OBJECT(obj) \