summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-08-30 13:49:33 +0000
committerBenny Prijono <bennylp@teluu.com>2007-08-30 13:49:33 +0000
commit5ac8f5a93ff6f9b5dcef98b5839596cd9085028b (patch)
tree463605aaa97055d6012c1e71d493019e518fe42c /pjlib
parent29394e589fd7af5f6459b72f153f571cd36f58f4 (diff)
More Symbian works:
- changed PJ_VERSION to pj_get_version() in pjsua-lib - added .mmp file for symbian_sound.cpp - allow pj_gethostip() in Symbian to return 127.0.0.1 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1426 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/src/pj/addr_resolv_symbian.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pjlib/src/pj/addr_resolv_symbian.cpp b/pjlib/src/pj/addr_resolv_symbian.cpp
index ea3c7660..7bdc4a6f 100644
--- a/pjlib/src/pj/addr_resolv_symbian.cpp
+++ b/pjlib/src/pj/addr_resolv_symbian.cpp
@@ -127,8 +127,9 @@ PJ_DEF(pj_status_t) pj_gethostip(pj_in_addr *addr)
len = sizeof(a);
status = pj_sock_getsockname(fd, &a, &len);
- if (status != PJ_SUCCESS) {
+ if (status != PJ_SUCCESS || a.sin_addr.s_addr==0) {
pj_sock_close(fd);
+ /* May return 127.0.0.1 */
return status;
}