Summary:ASTERISK-08026: [patch] ast_gethostbyname("", &hp) fails to set h_addrtype
Reporter:Alex Rosenberg (alexr)Labels:
Date Opened:2006-10-30 02:09:53.000-0600Date Closed:2006-10-31 00:21:45.000-0600
Versions:Frequency of
Environment:Attachments:( 0) ast_gethostbyname.patch
Description:utils.c:ast_gethostbyname() has a special case for an IPv4 numeric address to deal with octal number iterpretation. This special case fails to set h_addrtype to AF_INET.

In my Mac OS X 10.4 installation, this manifests itself as app_notify failing to sendto() to a numeric address as in:

exten => s,1,Notify(${CALLERIDNUM},${CALLERIDNAME},${EXTEN}/

Trivial patch included.
Comments:By: Russell Bryant (russell) 2006-10-30 23:46:34.000-0600

Would you mind filing a disclaimer with Digium?  Thanks!

By: Alex Rosenberg (alexr) 2006-10-30 23:56:08.000-0600

Will file one when I am next near a fax machine. With FSF for the GCC project, a change this small is considered obvious/trivial and an copyright assignment isn't necessary.

By: Russell Bryant (russell) 2006-10-31 00:21:44.000-0600

Yeah, you're right.  This isn't big enough that the disclaimer is really necessary.  I ask for it out of habit.

Fixed in 1.2, 1.4, and the trunk in revisions 46560, 46561, and 46562.  Thanks!