Implement close in TFTP

This commit is contained in:
Manoel Rebelo Abranches 2011-05-10 14:07:54 -03:00
parent 0696f08f92
commit 31b5172bbd

View file

@ -157,7 +157,8 @@ tftp_receive (grub_net_socket_t sock, struct grub_net_buff *nb)
static grub_err_t static grub_err_t
tftp_close (struct grub_file *file __attribute__ ((unused))) 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 = static struct grub_net_app_protocol grub_tftp_protocol =