diff --git a/lib/tftp.c b/lib/tftp.c index 782bb736710fea77d5f9b77396686396110afb2f..46ed2a71e7ee77942a15a3c9e2c012af041f2a34 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -738,7 +738,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, + sbytes = sendto(state->sockfd, (void *)&state->spacket.data, 4+state->sbytes, SEND_4TH_ARG, (struct sockaddr *)&state->remote_addr, state->remote_addrlen);