- use bb_xbind
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 10 Jun 2006 11:39:09 +0000 (11:39 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 10 Jun 2006 11:39:09 +0000 (11:39 -0000)
  Thanks Erik Hovland

networking/tftp.c

index 73a5ada..527e3dc 100644 (file)
@@ -172,7 +172,7 @@ static inline int tftp(const int cmd, const struct hostent *host,
        len = sizeof(sa);
 
        memset(&sa, 0, len);
-       bind(socketfd, (struct sockaddr *)&sa, len);
+       bb_xbind(socketfd, (struct sockaddr *)&sa, len);
 
        sa.sin_family = host->h_addrtype;
        sa.sin_port = port;