mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 14:59:34 +00:00
net: 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. Fixes bug: https://bugzilla.redhat.com/show_bug.cgi?id=860834 Signed-off-by: Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
3ea9bc3c06
commit
fc085f7f18
1 file changed
+1
-1
@@ -392,7 +392,7 @@ http_establish (struct grub_file *file, grub_off_t offset, int initial)
|
|||||||
|
|
||||||
data->sock = grub_net_tcp_open (file->device->net->server,
|
data->sock = grub_net_tcp_open (file->device->net->server,
|
||||||
HTTP_PORT, http_receive,
|
HTTP_PORT, http_receive,
|
||||||
http_err, http_err,
|
http_err, NULL,
|
||||||
file);
|
file);
|
||||||
if (!data->sock)
|
if (!data->sock)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user