diff options
author | Florian Lohoff <flo@rfc822.org> | 2009-02-16 14:38:48 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-02-16 14:40:01 -0800 |
commit | acf818880cbbbeb3709050cfcaa0e5503063df20 (patch) | |
tree | 7a05d2000efc6428a821b937fde554cbbfd81fef | |
parent | 932277c9a5f90d906296a319c0c3e5f36bf2e8b1 (diff) | |
download | tftp-hpa-acf818880cbbbeb3709050cfcaa0e5503063df20.tar.gz |
tftpd: correctly disable PMTU discovery in standalone mode
Use the correct file descriptors so we correctly turn off PMTU.
-rw-r--r-- | tftpd/tftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c index f98d52b..b3b49ee 100644 --- a/tftpd/tftpd.c +++ b/tftpd/tftpd.c @@ -719,7 +719,7 @@ int main(int argc, char **argv) } /* Disable path MTU discovery */ - pmtu_discovery_off(0); + pmtu_discovery_off(fd); /* This means we don't want to wait() for children */ #ifdef SA_NOCLDWAIT @@ -962,7 +962,7 @@ int main(int argc, char **argv) } /* Disable path MTU discovery */ - pmtu_discovery_off(0); + pmtu_discovery_off(peer); tp = (struct tftphdr *)buf; tp_opcode = ntohs(tp->th_opcode); |