Blame SOURCES/0173-icmp6-fix-no-respond-to-neighbor-solicit-message.patch

d41074
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a85e8e
From: Michael Chang <mchang@suse.com>
a85e8e
Date: Mon, 3 Nov 2014 16:27:45 +0800
d41074
Subject: [PATCH] icmp6 fix no respond to neighbor solicit message
a85e8e
a85e8e
The structure size used in grub_netbuff_pull to get the pointer to
a85e8e
option header is apparently wrong, which leads to subsequent range check
a85e8e
failed and therefore not responding to any neighbor solicit message in my
a85e8e
testing.
a85e8e
---
a85e8e
 grub-core/net/icmp6.c | 2 +-
a85e8e
 1 file changed, 1 insertion(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/grub-core/net/icmp6.c b/grub-core/net/icmp6.c
d41074
index 0843a15afda..78223946031 100644
a85e8e
--- a/grub-core/net/icmp6.c
a85e8e
+++ b/grub-core/net/icmp6.c
a85e8e
@@ -211,7 +211,7 @@ grub_net_recv_icmp6_packet (struct grub_net_buff *nb,
a85e8e
 	if (ttl != 0xff)
a85e8e
 	  break;
a85e8e
 	nbh = (struct neighbour_solicit *) nb->data;
a85e8e
-	err = grub_netbuff_pull (nb, sizeof (struct router_adv));
a85e8e
+	err = grub_netbuff_pull (nb, sizeof (*nbh));
a85e8e
 	if (err)
a85e8e
 	  {
a85e8e
 	    grub_netbuff_free (nb);