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