aboutsummaryrefslogtreecommitdiffstats
path: root/main/acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/acl.c')
-rw-r--r--main/acl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/acl.c b/main/acl.c
index 5a7017da9..53eb0b996 100644
--- a/main/acl.c
+++ b/main/acl.c
@@ -395,6 +395,7 @@ int ast_get_ip_or_srv(struct sockaddr_in *sin, const char *value, const char *se
}
hp = ast_gethostbyname(value, &ahp);
if (hp) {
+ sin->sin_family = hp->h_addrtype;
memcpy(&sin->sin_addr, hp->h_addr, sizeof(sin->sin_addr));
} else {
ast_log(LOG_WARNING, "Unable to lookup '%s'\n", value);