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

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