projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fdd98b
)
Rely on ast_gethostbyname to handle IP addresses, not inet_aton. (issue #9056 reporte...
author
Joshua Colp
<jcolp@digium.com>
Fri, 16 Feb 2007 01:36:18 +0000
(
01:36
+0000)
committer
Joshua Colp
<jcolp@digium.com>
Fri, 16 Feb 2007 01:36:18 +0000
(
01:36
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54749
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/acl.c
patch
|
blob
|
history
diff --git
a/main/acl.c
b/main/acl.c
index
a3d60cb
..
8d7dc42
100644
(file)
--- a/
main/acl.c
+++ b/
main/acl.c
@@
-230,8
+230,6
@@
int ast_get_ip_or_srv(struct sockaddr_in *sin, const char *value, const char *se
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) {