[asterisk-bugs] [Asterisk 0016135]: [patch] ast_gethostbyname doesn't set h_length if argument is an IP Address

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 26 17:08:15 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16135 
====================================================================== 
Reported By:                thedavidfactor
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16135
Category:                   Core/Netsock
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.6 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-26 17:08 CDT
Last Modified:              2009-10-26 17:08 CDT
====================================================================== 
Summary:                    [patch] ast_gethostbyname doesn't set h_length if
argument is an IP Address
Description: 
If an IP Address is give as the argument to ast_gethostbyname it
short-circuits and returns the ast_hostent with the provided IP Address,
however it doesn't set the h_length attribute, as it does if the argument
is a hostname. This was discussed with ebroad & mvanbaak on #asterisk-dev
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-26 17:08 thedavidfactor New Issue                                    
2009-10-26 17:08 thedavidfactor Asterisk Version          => 1.6.1.6         
2009-10-26 17:08 thedavidfactor Regression                => No              
2009-10-26 17:08 thedavidfactor SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list