Compare commits

...

3 Commits

Author SHA1 Message Date
Anita Zhang dd1b315d22
Merge pull request #14284 from yuwata/network-fix-segfault-14283
network: fix segfault in parsing SendOption=
2019-12-09 13:33:36 -08:00
Yu Watanabe 0810e6d787 test-network: add a test case for SendOption= 2019-12-10 01:28:09 +09:00
Yu Watanabe 83b56c70e6 network: fix segfault in parsing SendOption=
Fixes #14283.
2019-12-10 01:28:09 +09:00
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -7,3 +7,4 @@ IPv6AcceptRA=false
[DHCPv4] [DHCPv4]
RoutesToDNS=yes RoutesToDNS=yes
SendOption=12:string:test