diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index c96a9c087cd904bf21e4f0250b708108f1db547b..973f3522b5e341cbd146fecca853481fc1d3120e 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 }