Blame SOURCES/0095-Fix-crash-on-http.patch

6b3c76
From b01ecf0925ea952e2febb4a50f84f45c7b60ada3 Mon Sep 17 00:00:00 2001
a85e8e
From: Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
a85e8e
Date: Tue, 25 Sep 2012 18:40:55 -0400
6b3c76
Subject: [PATCH 095/261] Fix crash on http
a85e8e
a85e8e
Don't free file->data on receiving FIN flag since it is used all over without
a85e8e
checking. http_close() will be called later to free that memory.
a85e8e
https://bugzilla.redhat.com/show_bug.cgi?id=860834
a85e8e
---
a85e8e
 grub-core/net/http.c | 2 +-
a85e8e
 1 file changed, 1 insertion(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/grub-core/net/http.c b/grub-core/net/http.c
6b3c76
index 4684f8b33..ef9538c53 100644
a85e8e
--- a/grub-core/net/http.c
a85e8e
+++ b/grub-core/net/http.c
a85e8e
@@ -393,7 +393,7 @@ http_establish (struct grub_file *file, grub_off_t offset, int initial)
a85e8e
 
a85e8e
   data->sock = grub_net_tcp_open (file->device->net->server,
a85e8e
 				  HTTP_PORT, http_receive,
a85e8e
-				  http_err, http_err,
a85e8e
+				  http_err, NULL,
a85e8e
 				  file);
a85e8e
   if (!data->sock)
a85e8e
     {
6b3c76
-- 
6b3c76
2.13.5
6b3c76