]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Implement close in TFTP
authorManoel Rebelo Abranches <mrabran@br.ibm.com>
Tue, 10 May 2011 17:07:54 +0000 (14:07 -0300)
committerManoel Rebelo Abranches <mrabran@br.ibm.com>
Tue, 10 May 2011 17:07:54 +0000 (14:07 -0300)
grub-core/net/tftp.c

index 6cc2810855d5a8f1524cec46e0e7bb1d0b4a6560..13bd87d1589d5550973f6653f3bcdc93b2765c9f 100644 (file)
@@ -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 =