summaryrefslogtreecommitdiffstats
path: root/src/proto/tftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto/tftp.c')
-rw-r--r--src/proto/tftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proto/tftp.c b/src/proto/tftp.c
index 9c0e5563..c59807d7 100644
--- a/src/proto/tftp.c
+++ b/src/proto/tftp.c
@@ -50,8 +50,6 @@ int tftp_block ( struct tftpreq_info_t *request,
blksize = TFTP_DEFAULTSIZE_PACKET;
lport++; /* Use new local port */
server = *(request->server);
- if ( ! server.sin_port )
- server.sin_port = TFTP_PORT;
if ( !udp_transmit(server.sin_addr.s_addr, lport,
server.sin_port, xmitlen, &xmit) )
return (0);
@@ -170,5 +168,7 @@ int tftp ( char *url __unused,
}
struct protocol tftp_protocol __default_protocol = {
- "tftp", tftp
+ .name = "tftp",
+ .default_port = TFTP_PORT,
+ .load = tftp,
};