diff options
Diffstat (limited to 'main/acl.c')
-rw-r--r-- | main/acl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/acl.c b/main/acl.c index 67c05b03c..caa1d56f0 100644 --- a/main/acl.c +++ b/main/acl.c @@ -387,6 +387,7 @@ int ast_get_ip_or_srv(struct sockaddr_in *sin, const char *value, const char *se } } if ((hp = ast_gethostbyname(value, &ahp))) { + 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); |