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