From: Yu Watanabe Date: Thu, 28 Feb 2019 01:54:17 +0000 (+0900) Subject: network: avoid address section freed X-Git-Tag: v242-rc1~229^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4aa4c4b0f42cfbaa39b6559090cebcca27ddbc8d;p=thirdparty%2Fsystemd.git network: avoid address section freed Otherwise, if HomeAddress= or friends are specified at the first line of a section, then its assignment will be ignored. --- diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index aa827d6ba64..cb23213b5d4 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -904,6 +904,7 @@ int config_parse_address_flags(const char *unit, else if (streq(lvalue, "AutoJoin")) n->autojoin = r; + n = NULL; return 0; }