Merged revisions 152539 via svnmerge from
[asterisk/asterisk.git] / channels / chan_sip.c
index 9739ab3..060b9d9 100644 (file)
@@ -7264,7 +7264,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
                                struct sockaddr_in peer;
                                ast_rtp_get_peer(p->rtp, &peer);
                                if (peer.sin_addr.s_addr) {
-                                       memcpy(&sin.sin_addr, &peer.sin_addr, sizeof(&sin.sin_addr));
+                                       memcpy(&sin.sin_addr, &peer.sin_addr, sizeof(sin.sin_addr));
                                        if (debug) {
                                                ast_log(LOG_DEBUG, "Peer T.38 UDPTL is set behind NAT and with destination, destination address now %s\n", ast_inet_ntoa(sin.sin_addr));
                                        }