lsandova / rpms / grub2

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