Skip to content

Commit

Permalink
Merge pull request #14284 from yuwata/network-fix-segfault-14283
Browse files Browse the repository at this point in the history
network: fix segfault in parsing SendOption=
  • Loading branch information
anitazha committed Dec 9, 2019
2 parents fb4b046 + 0810e6d commit dd1b315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/networkd-dhcp-common.c
Expand Up @@ -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;
Expand Down
Expand Up @@ -7,3 +7,4 @@ IPv6AcceptRA=false

[DHCPv4]
RoutesToDNS=yes
SendOption=12:string:test

0 comments on commit dd1b315

Please sign in to comment.