diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 5a7472ba24..a90aff94e5 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -1979,7 +1979,7 @@ static void serialize_addresses(FILE *f, const char *key, Address *address) { LIST_FOREACH(addresses, ad, address) { char buf[INET6_ADDRSTRLEN]; - if (inet_ntop(address->family, &address->in_addr, buf, INET6_ADDRSTRLEN)) + if (inet_ntop(ad->family, &ad->in_addr, buf, INET6_ADDRSTRLEN)) fprintf(f, "%s%s", buf, (ad->addresses_next) ? " ": ""); } |