Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109823239
D33407.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
704 B
Referenced Files
None
Subscribers
None
D33407.diff
View Options
diff --git a/stand/libsa/tftp.c b/stand/libsa/tftp.c
--- a/stand/libsa/tftp.c
+++ b/stand/libsa/tftp.c
@@ -114,6 +114,8 @@
unsigned long tftp_tsize;
void *pkt;
struct tftphdr *tftp_hdr;
+ char *tftp_cache;
+ bool lastacksent;
};
struct tftprecv_extra {
@@ -378,6 +380,7 @@
if (res < h->tftp_blksize) {
h->islastblock = 1; /* very short file */
tftp_sendack(h, h->currblock);
+ h->lastacksent = true;
}
return (0);
}
@@ -594,7 +597,8 @@
struct tftp_handle *tftpfile;
tftpfile = f->f_fsdata;
- /* let it time out ... */
+ if (tftpfile->lastacksent == false)
+ tftp_senderr(tftpfile, 0, "No error: file closed");
if (tftpfile) {
free(tftpfile->path);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 11, 12:09 AM (9 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16585778
Default Alt Text
D33407.diff (704 B)
Attached To
Mode
D33407: loader: tftp: Don't let tftp timeout
Attached
Detach File
Event Timeline
Log In to Comment