networkd: remove debug message and unref when error

Follow-up for 8006aa32ee.
This commit is contained in:
Yu Watanabe
2017-11-18 01:22:38 +09:00
parent f56e7bfe2b
commit 4a3b54fd3c
+1 -2
View File
@@ -271,9 +271,8 @@ int dhcp6_configure(Link *link) {
goto error;
r = dhcp6_set_hostname(client, link);
log_link_warning(link, "dhcp6_set_hostname: %d", r);
if (r < 0)
return r;
goto error;
r = sd_dhcp6_client_set_ifindex(client, link->ifindex);
if (r < 0)