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

6b3c76
From 70717c72f114860c25908eabc4cb18a15ed2680e Mon Sep 17 00:00:00 2001
a85e8e
From: Michael Chang <mchang@suse.com>
a85e8e
Date: Mon, 3 Nov 2014 16:27:45 +0800
6b3c76
Subject: [PATCH 173/261] 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
6b3c76
index 0843a15af..782239460 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);
6b3c76
-- 
6b3c76
2.13.5
6b3c76