Let OSS know how to deal with indication -1

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-05-02 17:52:45 +00:00
parent 6cdbd6903c
commit c3c38eeeaf
2 changed files with 4 additions and 1 deletions

View File

@@ -6899,7 +6899,7 @@ static int reload_config(void)
hp = ast_gethostbyname(ourhost, &ahp);
if (!hp) {
ast_log(LOG_WARNING, "Unable to get IP address for %s, SIP disabled\n", ourhost);
if (!__ourip.sin_addr.s_addr)
if (!__ourip.s_addr)
return 0;
} else
memcpy(&__ourip, hp->h_addr, sizeof(__ourip));