summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-05-16 17:01:15 +0200
committerThomas Haller <thaller@redhat.com>2019-05-16 17:01:15 +0200
commit03ab1466bdf4d01a749ae7d35c416c8aa5e41c5d (patch)
tree8a5b09b03ab9f885f03873ff9be55fc512e40aa3
parentc307f07207a8090e986a5a55b692a6c0dd474350 (diff)
downloadNetworkManager-03ab1466bdf4d01a749ae7d35c416c8aa5e41c5d.tar.gz
dhcp: use g_return_if_fail() instead of g_assert() in nm_dhcp_client_start_timeout()
-rw-r--r--src/dhcp/nm-dhcp-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dhcp/nm-dhcp-client.c b/src/dhcp/nm-dhcp-client.c
index d494eff08e..359e3e6deb 100644
--- a/src/dhcp/nm-dhcp-client.c
+++ b/src/dhcp/nm-dhcp-client.c
@@ -476,8 +476,9 @@ nm_dhcp_client_start_timeout (NMDhcpClient *self)
{
NMDhcpClientPrivate *priv = NM_DHCP_CLIENT_GET_PRIVATE (self);
+ g_return_if_fail (priv->timeout_id == 0);
+
/* Set up a timeout on the transaction to kill it after the timeout */
- g_assert (priv->timeout_id == 0);
if (priv->timeout == NM_DHCP_TIMEOUT_INFINITY)
return;