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