summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-09-16 18:02:50 +0200
committerThomas Haller <thaller@redhat.com>2021-09-16 20:54:49 +0200
commit0d4840c4841586dcae704c8474d6fc8c3c5b6fa1 (patch)
tree0d3fd56988cb8be73d9ed3fb433182f9cbbe806a
parent882168c72862b07a2ffb9cbf83ddd7b90f1d29a0 (diff)
downloadNetworkManager-0d4840c4841586dcae704c8474d6fc8c3c5b6fa1.tar.gz
l3cfg: fix assertion in NM_IS_L3_CONFIG_DATA() to allow NULL
-rw-r--r--src/core/nm-l3-config-data.h2
1 files changed, 1 insertions, 1 deletions
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;
}