summaryrefslogtreecommitdiff
path: root/src/core/dhcp/nm-dhcp-nettools.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/dhcp/nm-dhcp-nettools.c')
-rw-r--r--src/core/dhcp/nm-dhcp-nettools.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/dhcp/nm-dhcp-nettools.c b/src/core/dhcp/nm-dhcp-nettools.c
index 3f6e3ac8d4..494745bbef 100644
--- a/src/core/dhcp/nm-dhcp-nettools.c
+++ b/src/core/dhcp/nm-dhcp-nettools.c
@@ -1036,10 +1036,8 @@ _accept(NMDhcpClient *client, const NML3ConfigData *l3cd, GError **error)
g_return_val_if_fail(l3cd, FALSE);
- if (priv->granted.lease_l3cd != l3cd) {
- nm_utils_error_set(error, NM_UTILS_ERROR_UNKNOWN, "calling accept in unexpected state");
- return FALSE;
- }
+ if (priv->granted.lease_l3cd != l3cd)
+ return TRUE;
nm_assert(priv->granted.lease);