aboutsummaryrefslogtreecommitdiffstats
path: root/main/acl.c
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-17 15:11:27 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-17 15:11:27 +0000
commitacbda8c5b8550f5dd2eec7fd12b35426c4671a61 (patch)
tree41142dcbfcc956a3ff4e66ae5bdf47ed902e8ed3 /main/acl.c
parentec79f7cd0daefeb0ede7503fc5d109f8b4c67a11 (diff)
Set sin_family in ast_get_ip_or_srv() and removed the 'last' member of the ast_dnsmgr_entry struct.
(closes issue #15827) Reported by: DennisD Patches: (modified) dnsmgr_15827.patch uploaded by chappell (license 8) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@271123 f38db490-d61c-443f-a65b-d21fe96a405b
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);