Merge "chan_unistim: Fix memcpy in get_to_address" into 13

This commit is contained in:
zuul
2016-06-22 18:50:52 -05:00
committed by Gerrit Code Review

View File

@@ -1021,7 +1021,7 @@ static int get_to_address(int fd, struct sockaddr_in *toAddr)
memcpy(&toAddr->sin_addr, &ip_msg.address, sizeof(struct in_addr)); memcpy(&toAddr->sin_addr, &ip_msg.address, sizeof(struct in_addr));
return err; return err;
#else #else
memcpy(&toAddr, &public_ip, sizeof(&toAddr)); memcpy(toAddr, &public_ip, sizeof(*toAddr));
return 0; return 0;
#endif #endif
} }