aboutsummaryrefslogtreecommitdiffstats
path: root/main/acl.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-02 18:31:11 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-02 18:31:11 +0000
commit2f49395f8f59d2dc11e091cd98ab95bcda925a73 (patch)
treeb85830d449ea78cde4a2ee2078f14372feaabacb /main/acl.c
parent64730d55252937e9f05dfc4e6686f5095f95acf6 (diff)
Solaris fix
(closes issue #12949) Reported by: snuffy Patches: bug_12949.diff uploaded by snuffy (license 35) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127466 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/acl.c')
-rw-r--r--main/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/acl.c b/main/acl.c
index 9a141a373..d903851ee 100644
--- a/main/acl.c
+++ b/main/acl.c
@@ -184,7 +184,7 @@ static int get_local_address(struct in_addr *ourip)
return -1;
}
- for (ifr = (struct lifreq *)buf, x = 0; x < ifn.lifn_count; ifr++, x++) {
+ for (ifr = ifc.lifc_req, x = 0; x < ifn.lifn_count; ifr++, x++) {
sa = (struct sockaddr_in *)&(ifr->lifr_addr);
score_address(sa, &best_addr, &best_score);
res = 0;