diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-10 11:39:09 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-10 11:39:09 +0000 |
commit | 3b1936dcf9d1df4f4a814de3c372258ee63b7cb3 (patch) | |
tree | d52ff18e810cdab417856a27f10c9b8f698ff8c8 /networking/tftp.c | |
parent | 44e216f2642ff4ea53026792e80df95df71e9905 (diff) | |
download | busybox-w32-3b1936dcf9d1df4f4a814de3c372258ee63b7cb3.tar.gz busybox-w32-3b1936dcf9d1df4f4a814de3c372258ee63b7cb3.tar.bz2 busybox-w32-3b1936dcf9d1df4f4a814de3c372258ee63b7cb3.zip |
- use bb_xbind
Thanks Erik Hovland
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index 73a5adae5..527e3dc11 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -172,7 +172,7 @@ static inline int tftp(const int cmd, const struct hostent *host, | |||
172 | len = sizeof(sa); | 172 | len = sizeof(sa); |
173 | 173 | ||
174 | memset(&sa, 0, len); | 174 | memset(&sa, 0, len); |
175 | bind(socketfd, (struct sockaddr *)&sa, len); | 175 | bb_xbind(socketfd, (struct sockaddr *)&sa, len); |
176 | 176 | ||
177 | sa.sin_family = host->h_addrtype; | 177 | sa.sin_family = host->h_addrtype; |
178 | sa.sin_port = port; | 178 | sa.sin_port = port; |