Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143070553
D38953.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
409 B
Referenced Files
None
Subscribers
None
D38953.diff
View Options
diff --git a/libexec/tftpd/tftp-options.c b/libexec/tftpd/tftp-options.c
--- a/libexec/tftpd/tftp-options.c
+++ b/libexec/tftpd/tftp-options.c
@@ -230,6 +230,7 @@
tftp_log(LOG_ERR, "sysctl: net.inet.udp.maxdgram");
return (acting_as_client ? 1 : 0);
}
+ maxdgram -= 4; /* leave room for header */
int size = atoi(options[OPT_BLKSIZE].o_request);
if (size < BLKSIZE_MIN || size > BLKSIZE_MAX) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 26, 3:24 PM (5 h, 18 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28039188
Default Alt Text
D38953.diff (409 B)
Attached To
Mode
D38953: tftpd: Fix max block size calculation.
Attached
Detach File
Event Timeline
Log In to Comment