diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-12 10:35:23 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-12 10:35:23 +0000 |
commit | 6536a9b5833febe719988526a095a9cacb8a1042 (patch) | |
tree | 07b65c5cf7e1f51909d4e7b516253bae7611fa48 /networking/tftp.c | |
parent | f8138d1f91c913166bffb0077a0fe06831a77ecf (diff) | |
download | busybox-w32-6536a9b5833febe719988526a095a9cacb8a1042.tar.gz busybox-w32-6536a9b5833febe719988526a095a9cacb8a1042.tar.bz2 busybox-w32-6536a9b5833febe719988526a095a9cacb8a1042.zip |
next part of ipv6-ization is here: wget & httpd
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index eaeb80857..43e835a5d 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -132,7 +132,7 @@ static int tftp( | |||
132 | #endif | 132 | #endif |
133 | const len_and_sockaddr *peer_lsa, | 133 | const len_and_sockaddr *peer_lsa, |
134 | const char *remotefile, const int localfd, | 134 | const char *remotefile, const int localfd, |
135 | const unsigned port, int tftp_bufsize) | 135 | unsigned port, int tftp_bufsize) |
136 | { | 136 | { |
137 | struct timeval tv; | 137 | struct timeval tv; |
138 | fd_set rfds; | 138 | fd_set rfds; |
@@ -154,6 +154,8 @@ static int tftp( | |||
154 | char *xbuf = xmalloc(tftp_bufsize += 4); | 154 | char *xbuf = xmalloc(tftp_bufsize += 4); |
155 | char *rbuf = xmalloc(tftp_bufsize); | 155 | char *rbuf = xmalloc(tftp_bufsize); |
156 | 156 | ||
157 | port = htons(port); | ||
158 | |||
157 | socketfd = xsocket(peer_lsa->sa.sa_family, SOCK_DGRAM, 0); | 159 | socketfd = xsocket(peer_lsa->sa.sa_family, SOCK_DGRAM, 0); |
158 | 160 | ||
159 | /* build opcode */ | 161 | /* build opcode */ |