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

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


The following issue has been UPDATED. 
====================================================================== 
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:                        
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 13:14 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...

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-09 13:14 lmadsen        Description Updated                          
======================================================================




More information about the asterisk-bugs mailing list