dcavalca / rpms / grub2

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