summaryrefslogtreecommitdiff
path: root/src/network/networkd-dhcp6.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-11-13 14:35:39 +0100
committerTom Gundersen <teg@jklm.no>2015-11-13 14:51:06 +0100
commit3098562c9236fe0bd3e7d950b6c53907304d277f (patch)
treee5ca8f5672a3cbca7e504ccc58aa1c962f90b412 /src/network/networkd-dhcp6.c
parentcf0f970fe1c6101b45cae8277c221c10398b8e1e (diff)
networkd: dhcp6 - don't log about losing a lease we never had
Diffstat (limited to 'src/network/networkd-dhcp6.c')
-rw-r--r--src/network/networkd-dhcp6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c
index 3ec9b84a93..d407b31b78 100644
--- a/src/network/networkd-dhcp6.c
+++ b/src/network/networkd-dhcp6.c
@@ -131,7 +131,8 @@ static void dhcp6_handler(sd_dhcp6_client *client, int event, void *userdata) {
case SD_DHCP6_CLIENT_EVENT_STOP:
case SD_DHCP6_CLIENT_EVENT_RESEND_EXPIRE:
case SD_DHCP6_CLIENT_EVENT_RETRANS_MAX:
- log_link_warning(link, "DHCPv6 lease lost");
+ if (sd_dhcp6_client_get_lease(client, NULL) >= 0)
+ log_link_warning(link, "DHCPv6 lease lost");
link->dhcp6_configured = false;
break;