Index: addons/ooh323c/src/ooSocket.c =================================================================== --- addons/ooh323c/src/ooSocket.c (revision 316873) +++ addons/ooh323c/src/ooSocket.c (working copy) @@ -522,10 +522,10 @@ int ooGetLocalIPAddress(char * pIPAddrs) ret = gethostname(hostname, 100); if(ret == 0) { - if (!(hp = ast_gethostbyname(hostname, &phost))) { + if ((hp = ast_gethostbyname(hostname, &phost))) { struct in_addr i; memcpy(&i, hp->h_addr, sizeof(i)); - strcpy(pIPAddrs, (ast_inet_ntoa(i) == NULL) ? "127.0.0.1" : ast_inet_ntoa(i)); + strcpy(pIPAddrs, (ast_inet_ntoa(i) == NULL) ? "127.0.0.1" : ast_inet_ntoa(i)); } else { return -1; }