summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-10-03 15:32:32 +0200
committerThomas Haller <thaller@redhat.com>2019-10-03 15:32:32 +0200
commit5a24ad53ad241059cf70b6593454fc124520405d (patch)
treed9bd9956f0758bc969771f79750165b9fa0c24d5
parente8588d0c6fe900ad60664c68aca4fa793b50e51b (diff)
downloadNetworkManager-5a24ad53ad241059cf70b6593454fc124520405d.tar.gz
device: order assert before logging in concheck_cb()
-rw-r--r--src/devices/nm-device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 76cd317eaf..1fe74b55e3 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -3024,15 +3024,15 @@ concheck_cb (NMConnectivity *connectivity,
/* keep @self alive, while we invoke callbacks. */
priv = NM_DEVICE_GET_PRIVATE (self);
+ nm_assert (handle && c_list_contains (&priv->concheck_lst_head, &handle->concheck_lst));
+
+ seq = handle->seq;
+
_LOGT (LOGD_CONCHECK, "connectivity: [Ipv%c] complete check (seq:%llu, state:%s)",
nm_utils_addr_family_to_char (handle->addr_family),
(long long unsigned) handle->seq,
nm_connectivity_state_to_string (state));
- nm_assert (handle && c_list_contains (&priv->concheck_lst_head, &handle->concheck_lst));
-
- seq = handle->seq;
-
/* find out, if there are any periodic checks pending (either whether they
* were scheduled before or after @handle. */
any_periodic_before = FALSE;