diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-08-30 13:49:33 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-08-30 13:49:33 +0000 |
commit | 5ac8f5a93ff6f9b5dcef98b5839596cd9085028b (patch) | |
tree | 463605aaa97055d6012c1e71d493019e518fe42c /pjlib/src/pj/addr_resolv_symbian.cpp | |
parent | 29394e589fd7af5f6459b72f153f571cd36f58f4 (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/src/pj/addr_resolv_symbian.cpp')
-rw-r--r-- | pjlib/src/pj/addr_resolv_symbian.cpp | 3 |
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; } |