chiark / gitweb /
networkd: fixup static DNS serialization
authorTom Gundersen <teg@jklm.no>
Mon, 19 May 2014 14:14:10 +0000 (16:14 +0200)
committerTom Gundersen <teg@jklm.no>
Mon, 19 May 2014 16:14:56 +0000 (18:14 +0200)
src/network/networkd-link.c

index 5a7472b..a90aff9 100644 (file)
@@ -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) ? " ": "");
         }