summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-19 16:14:10 +0200
committerTom Gundersen <teg@jklm.no>2014-05-19 18:14:56 +0200
commitd408b506814a0f99590d946b3bf99b57ba78336b (patch)
tree54c3bb3be05360926a0d9fd4a3001e1748ecfab5 /src/network
parent81d98a39eb4cca743beba27f4ae21a0e199df785 (diff)
networkd: fixup static DNS serialization
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c2
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) ? " ": "");
}