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

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