mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
Merge "chan_unistim: Fix memcpy in get_to_address" into 13
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user