From 9d7f329418139b0604071aee333d621c960915ca Mon Sep 17 00:00:00 2001 From: Qiumiao Zhang Date: Thu, 5 May 2022 10:35:14 +0800 Subject: [PATCH] fix null pointer dereference when paring ICMP6_ROUTER_ADVERTISE messages --- grub-core/net/icmp6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/net/icmp6.c b/grub-core/net/icmp6.c index 56a3ec5..fb88961 100644 --- a/grub-core/net/icmp6.c +++ b/grub-core/net/icmp6.c @@ -480,7 +480,7 @@ grub_net_recv_icmp6_packet (struct grub_net_buff *nb, /* May not have gotten slaac info, find a global address on this card. */ - if (route_inf == NULL) + if (route_inf == NULL && orig_inf != NULL) { FOR_NET_NETWORK_LEVEL_INTERFACES (inf) { -- 2.23.0