Merge pull request #10695 from yuwata/fuzz-network-fixes

network: fix recent issues found by oss-fuzz
This commit is contained in:
Lennart Poettering
2018-11-09 14:49:37 +01:00
committed by GitHub
4 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ Network.IPv6AcceptRouterAdvertisements, config_parse_tristate,
Network.IPv6DuplicateAddressDetection, config_parse_int, 0, offsetof(Network, ipv6_dad_transmits)
Network.IPv6HopLimit, config_parse_int, 0, offsetof(Network, ipv6_hop_limit)
Network.IPv6ProxyNDP, config_parse_tristate, 0, offsetof(Network, ipv6_proxy_ndp)
Network.IPv6MTUBytes, config_parse_mtu, AF_INET6, 0
Network.IPv6MTUBytes, config_parse_mtu, AF_INET6, offsetof(Network, ipv6_mtu)
Network.ActiveSlave, config_parse_bool, 0, offsetof(Network, active_slave)
Network.PrimarySlave, config_parse_bool, 0, offsetof(Network, primary_slave)
Network.IPv4ProxyARP, config_parse_tristate, 0, offsetof(Network, proxy_arp)
+1 -1
View File
@@ -413,7 +413,7 @@ void network_free(Network *network) {
if (network->manager->networks)
LIST_REMOVE(networks, network->manager->networks, network);
if (network->manager->networks_by_name)
if (network->manager->networks_by_name && network->name)
hashmap_remove(network->manager->networks_by_name, network->name);
if (network->manager->duids_requesting_uuid)
@@ -0,0 +1,2 @@
[Network]
IPv6MTUBytes=7K
@@ -0,0 +1,5 @@
[Network]
IPv6MTUBytes=6M
Bond=