From: Yu Watanabe Date: Tue, 29 Nov 2022 01:58:08 +0000 (+0900) Subject: network: add missing assertion X-Git-Tag: v253-rc1~397^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3016c40e39c358d703fa11ae53822a60d0b42c6;p=thirdparty%2Fsystemd.git network: add missing assertion --- diff --git a/src/network/networkd-util.h b/src/network/networkd-util.h index e8c390196e1..31ff4bc4256 100644 --- a/src/network/networkd-util.h +++ b/src/network/networkd-util.h @@ -91,6 +91,7 @@ int network_config_state_to_string_alloc(NetworkConfigState s, char **ret); 0); \ } \ static inline bool name##_is_requesting(type *t) { \ + assert(t); \ return FLAGS_SET(t->state, NETWORK_CONFIG_STATE_REQUESTING); \ } \ static inline void name##_enter_configuring(type *t) { \