Fix "externhost"

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Mark Spencer 21 years ago
parent e5ad6907c5
commit c5aedb3086

@ -654,7 +654,7 @@ static int ast_sip_ouraddrfor(struct in_addr *them, struct in_addr *us)
time(&externexpire);
externexpire += externrefresh;
if ((hp = ast_gethostbyname(externhost, &ahp))) {
memcpy(&externip, hp->h_addr, sizeof(externip));
memcpy(&externip.sin_addr, hp->h_addr, sizeof(externip));
} else
ast_log(LOG_NOTICE, "Warning: Re-lookup of '%s' failed!\n", externhost);
}

Loading…
Cancel
Save