]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-dhcp6-client: use in6_addr_to_string()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 6 Feb 2022 13:34:04 +0000 (22:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Feb 2022 05:43:45 +0000 (14:43 +0900)
src/libsystemd-network/sd-dhcp6-client.c

index dfb0b2c65fcef143583e862cd4d870290f15f7c3..03b1c918df95897889097d8edd7b3a5327a1b22d 100644 (file)
@@ -1437,7 +1437,7 @@ int sd_dhcp6_client_start(sd_dhcp6_client *client) {
                 if (r < 0) {
                         _cleanup_free_ char *p = NULL;
 
-                        (void) in_addr_to_string(AF_INET6, (const union in_addr_union*) &client->local_address, &p);
+                        (void) in6_addr_to_string(&client->local_address, &p);
                         return log_dhcp6_client_errno(client, r,
                                                       "Failed to bind to UDP socket at address %s: %m", strna(p));
                 }