grub/grub-core/net
Julian Andres Klode 03c594e6fa ofnet: Initialize structs in bootpath parser
Code later on checks if variables inside the struct are
0 to see if they have been set, like if there were addresses
in the bootpath.

The variables were not initialized however, so the check
might succeed with uninitialized data, and a new interface
with random addresses and the same name is added. This causes
$net_default_mac to point to the random one, so, for example,
using that variable to load per-mac config files fails.

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1785859

Signed-off-by: Julian Andres Klode <julian.klode@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2020-09-21 13:29:05 -04:00
..
drivers ofnet: Initialize structs in bootpath parser 2020-09-21 13:29:05 -04:00
arp.c Add Virtual LAN support. 2020-09-21 11:32:45 -04:00
bootp.c Merge remote-tracking branch 'upstream/master' 2017-01-23 14:02:45 -08:00
dns.c Merge remote-tracking branch 'upstream/master' 2017-01-23 14:02:45 -08:00
ethernet.c Add Virtual LAN support. 2020-09-21 11:32:45 -04:00
http.c Merge remote-tracking branch 'upstream/master' 2017-01-23 14:02:45 -08:00
icmp.c arp, icmp: Fix handling in case of oversized or invalid packets. 2015-03-27 12:18:25 +01:00
icmp6.c net: fix ipv6 routing 2016-02-25 22:38:52 +03:00
ip.c Add Virtual LAN support. 2020-09-21 11:32:45 -04:00
net.c Merge remote-tracking branch 'upstream/master' 2017-01-23 14:02:45 -08:00
netbuff.c arp, icmp: Fix handling in case of oversized or invalid packets. 2015-03-27 12:18:25 +01:00
tcp.c tcp: fix memory leaks 2016-01-16 20:59:50 +03:00
tftp.c tftp: fix memory leaks in open 2016-01-16 21:27:57 +03:00
udp.c * grub-core/disk/ahci.c: Add needed explicit cast. 2013-08-21 21:02:14 +02:00