[asterisk-bugs] [Asterisk 0010625]: iax2 craches on an empty host= line

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Sep 3 02:02:38 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10625 
====================================================================== 
Reported By:                pnlarsson
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   10625
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 81429 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             09-01-2007 15:49 CDT
Last Modified:              09-03-2007 02:02 CDT
====================================================================== 
Summary:                    iax2 craches on an empty host= line
Description: 
This happens in the 1.4 (rev 81429) branch and asterisk is not craching on
1.4.11.

Just have an entry in iax.conf with an empty host= line and chan_iax is
toast.

[8541]
username=8541
type=friend
secret=xxxxxxxxx
insecure=very
host=
context=from-xxxxxxx

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

---------------------------------------------------------------------- 
 jamesgolovich - 09-03-07 02:02  
---------------------------------------------------------------------- 
Haven't tested but I suspect this could easily be fixed by doing:
                        } else if (!strcasecmp(v->name, "host") &&
!ast_strlen_zero(v->value)) {

which will just be like there was no host= line specified.  It won't
likely be a functional peer at all but it shouldnt crash 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-03-07 02:02  jamesgolovich  Note Added: 0069851                          
======================================================================




More information about the asterisk-bugs mailing list