mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 22:35:28 +00:00
2ae5c1ecf9
Signed-off-by: Peter Jones <pjones@redhat.com>
28 lines
914 B
Diff
28 lines
914 B
Diff
From bf4d21655b4331c9f01e0ccca30a736e0503ce71 Mon Sep 17 00:00:00 2001
|
|
From: Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
|
|
Date: Tue, 25 Sep 2012 18:40:55 -0400
|
|
Subject: [PATCH 01/85] Fix crash on http
|
|
|
|
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
|
|
index 4684f8b..ef9538c 100644
|
|
--- a/grub-core/net/http.c
|
|
+++ b/grub-core/net/http.c
|
|
@@ -393,7 +393,7 @@ http_establish (struct grub_file *file, grub_off_t offset, int initial)
|
|
|
|
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)
|
|
{
|
|
--
|
|
2.5.0
|
|
|