diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-10-29 05:34:26 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-10-29 05:34:26 +0000 |
commit | 0dbd863733e87091783372139e6922dc8f9adaa3 (patch) | |
tree | 538b542152eec2ff7ee0e292b892623d042dd89a /channels | |
parent | 6fad66dfb305fe71140be651a0b4b64fe867a99e (diff) |
Merged revisions 152539 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r152539 | russell | 2008-10-29 00:23:51 -0500 (Wed, 29 Oct 2008) | 7 lines
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/trunk@152569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9739ab3eb..060b9d9b6 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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)); } |