[svn-commits] russell: branch 1.2 r46560 - /branches/1.2/utils.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Oct 30 23:18:36 MST 2006


Author: russell
Date: Tue Oct 31 00:18:36 2006
New Revision: 46560

URL: http://svn.digium.com/view/asterisk?rev=46560&view=rev
Log:
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.2/utils.c

Modified: branches/1.2/utils.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/utils.c?rev=46560&r1=46559&r2=46560&view=diff
==============================================================================
--- branches/1.2/utils.c (original)
+++ branches/1.2/utils.c Tue Oct 31 00:18:36 2006
@@ -195,6 +195,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 svn-commits mailing list