diff options
author | George Joseph <gjoseph@digium.com> | 2016-06-22 09:37:23 -0600 |
---|---|---|
committer | George Joseph <gjoseph@digium.com> | 2016-06-22 13:31:58 -0500 |
commit | c7309a525484f0509e940f01d630dbe2efe093ea (patch) | |
tree | 3988424d158e81698f8a74147ccd980c8d32c32b /channels/chan_unistim.c | |
parent | aec09d9c09f04c886b15c731faee9f8d4fb9833f (diff) |
chan_unistim: Fix memcpy in get_to_address
A code block only enabled when HAVE_PKTINFO is not defined (FreeBSD)
was using a pointer to a pointer as the destination of a memcpy and a
'&' instead of '*' in the sizeof.
ASTERISK-26138 #close
Change-Id: Id4927ff256c0e470bdf7bcfc025146a2f656e708
Diffstat (limited to 'channels/chan_unistim.c')
-rw-r--r-- | channels/chan_unistim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index c96a9c087..973f3522b 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -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)); return err; #else - memcpy(&toAddr, &public_ip, sizeof(&toAddr)); + memcpy(toAddr, &public_ip, sizeof(*toAddr)); return 0; #endif } |