Page MenuHomeFreeBSD

D38953.id118615.diff
No OneTemporary

D38953.id118615.diff

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

Mime Type
text/plain
Expires
Fri, Apr 3, 6:39 AM (22 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30747806
Default Alt Text
D38953.id118615.diff (409 B)

Event Timeline