mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Fix "externhost"
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user