From c1cdf01a0e155258e2675b6290c0fab97fd304dd Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 29 Oct 2008 05:23:51 +0000 Subject: [PATCH] Fix an incorrect usage of sizeof() (closes issue #13795) Reported by: andrew53 Patches: chan_sip_sizeof.patch uploaded by andrew53 (license 519) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@152539 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0e744d4164..979b5de503 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5279,7 +5279,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) 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)); } -- 2.47.3