[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
Wed Jan 19 11:59:20 CST 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16135
======================================================================
Reported By: thedavidfactor
Assigned To: seanbright
======================================================================
Project: Asterisk
Issue ID: 16135
Category: Core/Netsock
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2009-10-26 17:08 CDT
Last Modified: 2011-01-19 11:59 CST
======================================================================
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
======================================================================
----------------------------------------------------------------------
(0130712) svnbot (reporter) - 2011-01-19 11:59
https://issues.asterisk.org/view.php?id=16135#c130712
----------------------------------------------------------------------
Repository: asterisk
Revision: 302507
_U trunk/
U trunk/main/utils.c
------------------------------------------------------------------------
r302507 | seanbright | 2011-01-19 11:59:19 -0600 (Wed, 19 Jan 2011) | 21
lines
Merged revisions 302505 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
................
r302505 | seanbright | 2011-01-19 12:58:11 -0500 (Wed, 19 Jan 2011) | 14
lines
Merged revisions 302504 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
........
r302504 | seanbright | 2011-01-19 12:56:32 -0500 (Wed, 19 Jan 2011) |
7 lines
Make sure that h_length is set when we short-circuit out of
ast_gethostbyname.
(closes issue https://issues.asterisk.org/view.php?id=16135)
Reported by: thedavidfactor
Patches:
utils.patch uploaded by thedavidfactor (license 903)
........
................
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=302507
Issue History
Date Modified Username Field Change
======================================================================
2011-01-19 11:59 svnbot Checkin
2011-01-19 11:59 svnbot Note Added: 0130712
======================================================================
More information about the asterisk-bugs
mailing list