[Asterisk-cvs] asterisk acl.c,1.37,1.38
markster at lists.digium.com
markster at lists.digium.com
Sun Feb 13 13:55:51 CST 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv490
Modified Files:
acl.c
Log Message:
Don't lookup SRV's on IP addresses
Index: acl.c
===================================================================
RCS file: /usr/cvsroot/asterisk/acl.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- acl.c 9 Feb 2005 03:22:41 -0000 1.37
+++ acl.c 13 Feb 2005 19:55:28 -0000 1.38
@@ -207,6 +207,8 @@
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 svn-commits
mailing list