[asterisk-commits] file: trunk r54749 - /trunk/main/acl.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Feb 15 18:36:19 MST 2007
Author: file
Date: Thu Feb 15 19:36:18 2007
New Revision: 54749
URL: http://svn.digium.com/view/asterisk?view=rev&rev=54749
Log:
Rely on ast_gethostbyname to handle IP addresses, not inet_aton. (issue #9056 reported by pj)
Modified:
trunk/main/acl.c
Modified: trunk/main/acl.c
URL: http://svn.digium.com/view/asterisk/trunk/main/acl.c?view=diff&rev=54749&r1=54748&r2=54749
==============================================================================
--- trunk/main/acl.c (original)
+++ trunk/main/acl.c Thu Feb 15 19:36:18 2007
@@ -230,8 +230,6 @@
char srv[256];
char host[256];
int tportno = ntohs(sin->sin_port);
- if (inet_aton(value, &sin->sin_addr))
- return 0;
if (service) {
snprintf(srv, sizeof(srv), "%s.%s", service, value);
if (ast_get_srv(NULL, host, sizeof(host), &tportno, srv) > 0) {
More information about the asterisk-commits
mailing list