Skip to content
Snippets Groups Projects
Commit 1bb7334f authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

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/trunk@127466 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent b30ed551
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment