summaryrefslogtreecommitdiff
path: root/src/network/networkd-address.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-11-28 17:17:04 +0100
committerTom Gundersen <teg@jklm.no>2013-11-28 17:17:04 +0100
commit92fe133abf2de889659464ae8affd1db1710f72e (patch)
tree3d565456c31385c44fea73ec3b8ed35498a100da /src/network/networkd-address.c
parent2a16a986ce5f1bdb7e96abfe14fcb9f34c9364b6 (diff)
networkd: fix several Address entries in [Network] section
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r--src/network/networkd-address.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index 0555d317a4..8f16a8c6c1 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -155,6 +155,12 @@ int config_parse_address(const char *unit,
assert(rvalue);
assert(data);
+ if (streq(section, "Network")) {
+ /* we are not in an Address section, so treat
+ * this as the special '0' section */
+ section_line = 0;
+ }
+
r = address_new(network, section_line, &n);
if (r < 0)
return r;