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