[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 04:51:52 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11648 
====================================================================== 
Reported By:                makoto
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11648
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
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 04:51 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.

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

---------------------------------------------------------------------- 
 sergee - 12-28-07 04:51  
---------------------------------------------------------------------- 
seems like a bug for me. Every even element of req->headers[] array is NULL
because of it. This issue is present in 1.4 branch and in trunk.

Uploading Patch for removing this explicit increment. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-28-07 04:51  sergee         Note Added: 0076086                          
======================================================================




More information about the asterisk-bugs mailing list