]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: remove debug message and unref when error
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Nov 2017 16:22:34 +0000 (01:22 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 Nov 2017 16:22:38 +0000 (01:22 +0900)
Follow-up for 8006aa32ee29538ef1d7978d60d6427a0bf31e80.

src/network/networkd-dhcp6.c

index ee28d7ac39e95d339b63ad15c56cc3fe719aa039..6dfeb68717a77fc011bc393990c2b5bd857a5bf2 100644 (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)