]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: fix segfault in parsing SendOption=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 8 Dec 2019 10:54:20 +0000 (19:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Dec 2019 16:28:09 +0000 (01:28 +0900)
Fixes #14283.

src/network/networkd-dhcp-common.c

index ea5974c32acf66e967ee396da050a04302777d96..6465a8cfe9c77e7e30d6a84faa83baee1da34057 100644 (file)
@@ -279,7 +279,7 @@ int config_parse_dhcp_send_option(
 
         _cleanup_(sd_dhcp_option_unrefp) sd_dhcp_option *opt = NULL, *old = NULL;
         _cleanup_free_ char *word = NULL, *q = NULL;
-        OrderedHashmap **options = userdata;
+        OrderedHashmap **options = data;
         union in_addr_union addr;
         DHCPOptionDataType type;
         uint8_t u, uint8_data;