chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libsystemd-bus: catch up with latest kdbus list query changes
[elogind.git]
/
src
/
network
/
networkd-address.c
diff --git
a/src/network/networkd-address.c
b/src/network/networkd-address.c
index 0555d317a40549f86cbf501a11601ac1705be2c5..8f16a8c6c15851f9cb5b6c0a72f358d6c9881b6b 100644
(file)
--- 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;