diff options
-rw-r--r-- | lib/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index fbc4e9690..51702740a 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -541,7 +541,7 @@ CURLcode Curl_tftp_connect(struct connectdata *conn, bool *done) #ifdef WIN32 /* AF_UNSPEC == 0 (from above calloc) doesn't work on Winsock */ - state->local_addr.sa_family = conn->ip_addr->ai_family; + ((struct sockaddr_in*)&state->local_addr)->sin_family = conn->ip_addr->ai_family; #endif tftp_set_timeouts(state); |