tftpd: correctly disable PMTU discovery in standalone mode

Use the correct file descriptors so we correctly turn off PMTU.
This commit is contained in:
Florian Lohoff 2009-02-16 14:38:48 -08:00 committed by H. Peter Anvin
parent 932277c9a5
commit acf818880c

View file

@ -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);