aboutsummaryrefslogtreecommitdiffstats
path: root/acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'acl.c')
-rwxr-xr-xacl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/acl.c b/acl.c
index 1ec629f2b..f698ec3ac 100755
--- a/acl.c
+++ b/acl.c
@@ -139,7 +139,8 @@ int ast_apply_ha(struct ast_ha *ha, struct sockaddr_in *sin)
int ast_get_ip(struct sockaddr_in *sin, char *value)
{
struct hostent *hp;
- hp = gethostbyname(value);
+ struct ast_hostent ahp;
+ hp = ast_gethostbyname(value, &ahp);
if (hp) {
memcpy(&sin->sin_addr, hp->h_addr, sizeof(sin->sin_addr));
} else {