Cast sockaddr to sockaddr_storage

master
Aadhavan Srinivasan 9 months ago
parent 8401f74922
commit 9f1f313091

@ -130,7 +130,7 @@ SOCKET create_remote (int network,char transport, const char* address,int port,s
if (err_code != 0) {
return (-1 * err_code);
}
remote_addr_struct = results->ai_addr;
remote_addr_struct = (struct sockaddr_storage *)results->ai_addr;
network = inet_to_int(results->ai_family);
} else {
create_addr(network,address,port,remote_addr_struct);

Loading…
Cancel
Save