* grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
This commit is contained in:
parent
412ce9165c
commit
369508b3cb
2 changed files with 7 additions and 1 deletions
|
@ -243,6 +243,8 @@ tftp_receive (grub_net_udp_socket_t sock __attribute__ ((unused)),
|
|||
data->block++;
|
||||
if (size < data->block_size)
|
||||
{
|
||||
if (data->ack_sent < data->block)
|
||||
ack (data, data->block);
|
||||
file->device->net->eof = 1;
|
||||
file->device->net->stall = 1;
|
||||
grub_net_udp_close (data->sock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue