Fix pointer type mismatch struct sockaddr_storage* and struct sockaddr*

This commit is contained in:
Armin Novak 2018-04-05 10:47:50 +02:00
parent a9ecd6a6cc
commit 26d9957608

View File

@ -673,7 +673,7 @@ static char* freerdp_tcp_get_ip_address(int sockfd, BOOL* pIPv6)
struct sockaddr_in* sockaddr_ipv4 = (struct sockaddr_in*)&saddr;
length = sizeof(struct sockaddr_storage);
if (getsockname(sockfd, &saddr, &length) != 0)
if (getsockname(sockfd, (struct sockaddr*)&saddr, &length) != 0)
return NULL;
switch (sockaddr_ipv4->sin_family)