]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: add missing assertion
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Nov 2022 01:58:08 +0000 (10:58 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Nov 2022 01:18:03 +0000 (10:18 +0900)
src/network/networkd-util.h

index e8c390196e1a329412a86ad2075d45836b557152..31ff4bc4256adf5df878df078994d25e4716f436 100644 (file)
@@ -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) {          \