From 0d4840c4841586dcae704c8474d6fc8c3c5b6fa1 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 16 Sep 2021 18:02:50 +0200 Subject: [PATCH] l3cfg: fix assertion in NM_IS_L3_CONFIG_DATA() to allow NULL --- src/core/nm-l3-config-data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/nm-l3-config-data.h b/src/core/nm-l3-config-data.h index d8999986a2..2e82203466 100644 --- a/src/core/nm-l3-config-data.h +++ b/src/core/nm-l3-config-data.h @@ -185,7 +185,7 @@ NM_IS_L3_CONFIG_DATA(const NML3ConfigData *self) * * Additionally, also call nm_l3_config_data_get_ifindex(), which does more * checks during nm_assert(). */ - nm_assert(nm_l3_config_data_get_ifindex(self) > 0); + nm_assert(!self || nm_l3_config_data_get_ifindex(self) > 0); return !!self; }