diff options
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index ea415e5..0621dde 100644 --- a/networking/tftp.c +++ b/networking/tftp.c @@ -257,12 +257,7 @@ static int tftp( fprintf(stderr, "%02x ", (unsigned char) *cp); fprintf(stderr, "\n"); #endif - if (sendto(socketfd, xbuf, len, 0, - &peer_lsa->sa, peer_lsa->len) < 0) { - bb_perror_msg("send"); - len = -1; - break; - } + xsendto(socketfd, xbuf, len, &peer_lsa->sa, peer_lsa->len); if (finished && (opcode == TFTP_ACK)) { break; |