From: Yu Watanabe Date: Sun, 8 Dec 2019 10:54:20 +0000 (+0900) Subject: network: fix segfault in parsing SendOption= X-Git-Tag: v245-rc1~290^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83b56c70e6bcca3359b26197a7463e4c22868df1;p=thirdparty%2Fsystemd.git network: fix segfault in parsing SendOption= Fixes #14283. --- diff --git a/src/network/networkd-dhcp-common.c b/src/network/networkd-dhcp-common.c index ea5974c32ac..6465a8cfe9c 100644 --- a/src/network/networkd-dhcp-common.c +++ b/src/network/networkd-dhcp-common.c @@ -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;