nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0241-Revert-trim-arp-packets-with-abnormal-size.patch

f725e3
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f725e3
From: Peter Jones <pjones@redhat.com>
f725e3
Date: Thu, 18 May 2017 14:25:45 -0400
f725e3
Subject: [PATCH] Revert "trim arp packets with abnormal size"
f725e3
f725e3
This reverts commit d11b2eb425d2125f67dd8d8e9b11d9be7d6f3f11.
f725e3
---
f725e3
 grub-core/net/arp.c | 6 ------
f725e3
 1 file changed, 6 deletions(-)
f725e3
f725e3
diff --git a/grub-core/net/arp.c b/grub-core/net/arp.c
f725e3
index 77581f4b29a..d62d0cc1e01 100644
f725e3
--- a/grub-core/net/arp.c
f725e3
+++ b/grub-core/net/arp.c
f725e3
@@ -162,12 +162,6 @@ grub_net_arp_receive (struct grub_net_buff *nb,
f725e3
     if (grub_net_addr_cmp (&inf->address, &target_addr) == 0
f725e3
 	&& grub_be_to_cpu16 (arp_header->op) == ARP_REQUEST)
f725e3
       {
f725e3
-        if ((nb->tail - nb->data) > 50)
f725e3
-          {
f725e3
-            grub_dprintf ("net", "arp packet with abnormal size (%ld bytes).\n",
f725e3
-                         nb->tail - nb->data);
f725e3
-            nb->tail = nb->data + 50;
f725e3
-          }
f725e3
 	grub_net_link_level_address_t target;
f725e3
 	/* We've already checked that pln is either 4 or 16.  */
f725e3
 	char tmp[16];