From 8d1f5d94e946f5ab5a7ff212342e913222046b8f Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Wed, 2 Jul 2008 18:31:58 +0000 Subject: [PATCH] Merged revisions 127466 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r127466 | tilghman | 2008-07-02 13:31:11 -0500 (Wed, 02 Jul 2008) | 6 lines Solaris fix (closes issue #12949) Reported by: snuffy Patches: bug_12949.diff uploaded by snuffy (license 35) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@127467 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/acl.c b/main/acl.c index 9a141a3735..d903851ee3 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;