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

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