From: Manoel Rebelo Abranches Date: Tue, 10 May 2011 17:07:54 +0000 (-0300) Subject: Implement close in TFTP X-Git-Tag: 2.00~1195^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=31b5172bbd3cfa83f0cd9d83fce18a21e2796048;p=thirdparty%2Fgrub.git Implement close in TFTP --- diff --git a/grub-core/net/tftp.c b/grub-core/net/tftp.c index 6cc281085..13bd87d15 100644 --- a/grub-core/net/tftp.c +++ b/grub-core/net/tftp.c @@ -157,7 +157,8 @@ tftp_receive (grub_net_socket_t sock, struct grub_net_buff *nb) static grub_err_t tftp_close (struct grub_file *file __attribute__ ((unused))) { - return 0; + grub_free (file->device->net->socket->data); + return GRUB_ERR_NONE; } static struct grub_net_app_protocol grub_tftp_protocol =