[asterisk-commits] russell: branch 1.4 r46561 - in /branches/1.4:
./ main/utils.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Oct 30 23:19:56 MST 2006
Author: russell
Date: Tue Oct 31 00:19:56 2006
New Revision: 46561
URL: http://svn.digium.com/view/asterisk?rev=46561&view=rev
Log:
Merged revisions 46560 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r46560 | russell | 2006-10-31 01:18:36 -0500 (Tue, 31 Oct 2006) | 3 lines
When handling the case where the hostname is just an IPV4 numeric address,
be sure to set the address type. (issue #8247, alexr)
........
Modified:
branches/1.4/ (props changed)
branches/1.4/main/utils.c
Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: branches/1.4/main/utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/utils.c?rev=46561&r1=46560&r2=46561&view=diff
==============================================================================
--- branches/1.4/main/utils.c (original)
+++ branches/1.4/main/utils.c Tue Oct 31 00:19:56 2006
@@ -204,6 +204,7 @@
if (dots != 3)
return NULL;
memset(hp, 0, sizeof(struct ast_hostent));
+ hp->hp.h_addrtype = AF_INET;
hp->hp.h_addr_list = (void *) hp->buf;
hp->hp.h_addr = hp->buf + sizeof(void *);
if (inet_pton(AF_INET, host, hp->hp.h_addr) > 0)
More information about the asterisk-commits
mailing list