]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: avoid address section freed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 Feb 2019 01:54:17 +0000 (10:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 Feb 2019 01:54:20 +0000 (10:54 +0900)
Otherwise, if HomeAddress= or friends are specified at the first line of
a section, then its assignment will be ignored.

src/network/networkd-address.c

index aa827d6ba64977a314f4d202d12ae541557cb85c..cb23213b5d492c9a1740afff5e7c50185829f120 100644 (file)
@@ -904,6 +904,7 @@ int config_parse_address_flags(const char *unit,
         else if (streq(lvalue, "AutoJoin"))
                 n->autojoin = r;
 
+        n = NULL;
         return 0;
 }