Fix "externhost"

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-01-07 21:35:50 +00:00
parent e5ad6907c5
commit c5aedb3086

View File

@@ -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);
}