From e63dc96a8f2ccce7d6a5005ea7f247e6f510ad2e Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 21 Sep 2011 00:30:38 -0500 Subject: [PATCH] core: release DHCP lease when requested instead of always --- src/nm-device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nm-device.c b/src/nm-device.c index d570d1bd99..c0b1b87401 100644 --- a/src/nm-device.c +++ b/src/nm-device.c @@ -1573,8 +1573,11 @@ nm_device_dhcp4_renew (NMDevice *self, gboolean release) g_return_val_if_fail (priv->dhcp4_client != NULL, FALSE); + nm_log_info (LOGD_DHCP4, "(%s): DHCPv4 lease renewal requested", + nm_device_get_iface (self)); + /* Terminate old DHCP instance and release the old lease */ - dhcp4_cleanup (self, TRUE, TRUE); + dhcp4_cleanup (self, TRUE, release); req = nm_device_get_act_request (self); g_assert (req);