diff options
Diffstat (limited to 'src/network/networkd-util.h')
-rw-r--r-- | src/network/networkd-util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-util.h b/src/network/networkd-util.h index e8c390196e..f75fb1f868 100644 --- a/src/network/networkd-util.h +++ b/src/network/networkd-util.h @@ -91,12 +91,14 @@ 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) { \ name##_update_state(t, \ NETWORK_CONFIG_STATE_REQUESTING | \ - NETWORK_CONFIG_STATE_CONFIGURING, \ + NETWORK_CONFIG_STATE_CONFIGURING | \ + NETWORK_CONFIG_STATE_REMOVING, \ NETWORK_CONFIG_STATE_CONFIGURING); \ } \ static inline void name##_enter_configured(type *t) { \ |