copy just the ip address over to __ourip

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1249 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeremy McNamara 2003-08-02 05:46:32 +00:00
parent fd62e99c23
commit 0484eac549
1 changed files with 1 additions and 1 deletions

View File

@ -2942,7 +2942,7 @@ int load_module()
}
if (ntohl(bindaddr.sin_addr.s_addr)) {
memcpy(&__ourip, &bindaddr, sizeof(__ourip));
memcpy(&__ourip, &bindaddr.sin_addr, sizeof(__ourip));
} else {
hp = gethostbyname(ourhost);
if (!hp) {