[Home]

Summary:ASTERISK-12975: [patch] Incorrect use of sizeof()
Reporter:Andrei Tanas (andrew53)Labels:
Date Opened:2008-10-28 23:15:10Date Closed:2008-10-29 00:12:54
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_sip_sizeof.patch
Description:In process_sdp memcpy is called with sizeof(&sin.sin_addr): sizeof pointer that is, rather than sin_addr. Luckily, there's nothing important after it in the sockaddr_in structure.
Comments:By: Digium Subversion (svnbot) 2008-10-29 00:12:52

Repository: asterisk
Revision: 152539

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r152539 | russell | 2008-10-29 00:12:51 -0500 (Wed, 29 Oct 2008) | 7 lines

Fix an incorrect usage of sizeof()

(closes issue ASTERISK-12975)
Reported by: andrew53
Patches:
chan_sip_sizeof.patch uploaded by andrew53 (license 519)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=152539