diff --git a/netutils/tftpc/tftpc_get.c b/netutils/tftpc/tftpc_get.c index 9b63405d5d..e1b0e10d52 100644 --- a/netutils/tftpc/tftpc_get.c +++ b/netutils/tftpc/tftpc_get.c @@ -204,8 +204,9 @@ int tftpget(const char *remote, const char *local, in_addr_t addr, boolean binar goto errout_with_sd; } - /* Subsequent recvfrom will use any port number until the correct - * port for the data transfer is established. + /* Subsequent sendto will use the port number selected by the TFTP + * server. Setting the server port to zero indicates that we have + * not yet received the server port number. */ server.sin_port = 0;