diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-01-12 23:13:19 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-01-12 23:13:19 +0100 |
commit | 9f20379fe445d0994daa11d022270aea5ab99af6 (patch) | |
tree | ae270fbf9f829ef8161697c2239bd6333232faef /lib/tftp.c | |
parent | 123c92c904b2f258ae69e211aa2663e80cb5429a (diff) | |
download | gnurl-9f20379fe445d0994daa11d022270aea5ab99af6.tar.gz gnurl-9f20379fe445d0994daa11d022270aea5ab99af6.tar.bz2 gnurl-9f20379fe445d0994daa11d022270aea5ab99af6.zip |
hostip: avoid getaddrinfo when c-ares is used
Some functions using getaddrinfo and gethostbyname were still
mistakingly being used/linked even if c-ares was selected as resolver
backend.
Reported by: Arthur Murray
Bug: http://curl.haxx.se/mail/lib-2012-01/0160.html
Diffstat (limited to 'lib/tftp.c')
-rw-r--r-- | lib/tftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index 370665a43..85404de8b 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -727,7 +727,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event) } else { /* Re-send the data packet */ - sbytes = sendto(state->sockfd, (void *)&state->spacket.data, + sbytes = sendto(state->sockfd, (void *)state->spacket.data, 4+state->sbytes, SEND_4TH_ARG, (struct sockaddr *)&state->remote_addr, state->remote_addrlen); |