[asterisk-bugs] [Asterisk 0017614]: [patch] IPv6 - Potential issue in via header parsing

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jul 9 14:43:33 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17614 
====================================================================== 
Reported By:                oej
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17614
Category:                   Channels/chan_sip/General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-1834 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 274865 
Request Review:              
====================================================================== 
Date Submitted:             2010-07-09 07:47 CDT
Last Modified:              2010-07-09 14:43 CDT
====================================================================== 
Summary:                    [patch] IPv6 - Potential issue in via header parsing
Description: 
14223                 c = ast_skip_blanks(c+1);
14224                 if (strcasecmp(via, "SIP/2.0/UDP") &&
strcasecmp(via, "SIP/2.0/TCP") && strcasecmp(via, "SIP/2.0/TLS")) {
14225                         ast_log(LOG_WARNING, "Don't know how to
respond via '%s'\n", via);
14226                         return;
14227                 }
14228                 pt = strchr(c, ':');


Seems like we're looking for the first colon.

Via: SIP/2.0/TCP
[2620:0:2ef0:7070:250:60ff:fe03:32b7]:5060;branch=z9hG4bK4882ebf2298267bc4ba97d222289760c.1;rport


In this case, port would propably be 0 and not 5060...

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

---------------------------------------------------------------------- 
 (0124431) mmichelson (administrator) - 2010-07-09 14:43
 https://issues.asterisk.org/view.php?id=17614#c124431 
---------------------------------------------------------------------- 
Good catch, Olle. Thanks for the Quick patch, Simon. Patch looks correct to
me. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-09 14:43 mmichelson     Note Added: 0124431                          
======================================================================




More information about the asterisk-bugs mailing list