[asterisk-bugs] [Asterisk 0011648]: Extra increment of req->headers in add_header function

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Dec 28 12:21:32 CST 2007


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11648 
====================================================================== 
Reported By:                makoto
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   11648
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.16.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-28-2007 03:57 CST
Last Modified:              12-28-2007 12:21 CST
====================================================================== 
Summary:                    Extra increment of req->headers in add_header
function
Description: 
In add_header function of chan_sip.c, req->headers is incremented twice.
But I think that one of them is not necessary.

====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 12-28-07 12:21  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 95191

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r95191 | russell | 2007-12-28 12:21:30 -0600 (Fri, 28 Dec 2007) | 6 lines

Remove duplicate increment of the header count in the add_header()
function.

(closes issue http://bugs.digium.com/view.php?id=11648)
Reported by: makoto
Patch provided by sergee, committed patch by me, inspired by comments from
putnopvut

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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-28-07 12:21  svnbot         Note Added: 0076113                          
12-28-07 12:21  svnbot         Status                   new => assigned     
12-28-07 12:21  svnbot         Assigned To               => russell         
======================================================================




More information about the asterisk-bugs mailing list