]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: dhcp6 - fix mem leak 1908/head
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 15 Nov 2015 22:08:22 +0000 (23:08 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 15 Nov 2015 22:10:28 +0000 (23:10 +0100)
from 7a695d8e
CID#1338679

src/network/networkd-dhcp6.c

index d407b31b78e9d8a145a879e972ffcec8481751a4..f83ff54369ec72c1f8740637309e1076d4578272 100644 (file)
@@ -221,7 +221,7 @@ int dhcp6_configure(Link *link) {
 
         r = sd_dhcp6_client_set_information_request(client, true);
         if (r < 0)
-                return r;
+                goto error;
 
         r = sd_dhcp6_client_set_mac(client,
                                     (const uint8_t *) &link->mac,