From: Avik Sil Date: Wed, 14 Aug 2013 23:32:42 +0000 (-0300) Subject: * grub-core/net/tftp.c: Send tftp ack packet before closing the socket. X-Git-Tag: grub-2.02-beta1~900 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=369508b3cb0a84c0118ee32adef923109ad187dc;p=thirdparty%2Fgrub.git * grub-core/net/tftp.c: Send tftp ack packet before closing the socket. --- diff --git a/ChangeLog b/ChangeLog index 295b2adcd..d326b2d69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ -2013-08-14 Avik Sil +2013-08-14 Avik Sil + + * grub-core/net/tftp.c: Send tftp ack packet before closing the socket. + +2013-08-14 Avik Sil * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when using qemu. diff --git a/grub-core/net/tftp.c b/grub-core/net/tftp.c index d0f39ea36..b9d9549c8 100644 --- a/grub-core/net/tftp.c +++ b/grub-core/net/tftp.c @@ -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);