diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-08-17 11:29:39 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-08-17 11:29:39 +0000 |
commit | f30ffc6ffcbf688897809460c713a4614ab05d8a (patch) | |
tree | 62dc4366b27fcc2261042d04c93ddff405cc3f16 /pjlib/src/pj/addr_resolv_symbian.cpp | |
parent | 291a28bd6ee16ec382e97a59c53b1d58f93b5163 (diff) |
Ticket #946: Fixed Symbian address resolver to have PJ_HAS_IPV6 check, so it will not try to resolve IPv6 address family when IPv6 is not enabled.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2888 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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pjlib/src/pj/addr_resolv_symbian.cpp b/pjlib/src/pj/addr_resolv_symbian.cpp index 8af57c5f..055ad414 100644 --- a/pjlib/src/pj/addr_resolv_symbian.cpp +++ b/pjlib/src/pj/addr_resolv_symbian.cpp @@ -71,9 +71,14 @@ static pj_status_t getaddrinfo_by_af(int af, const pj_str_t *name, PJ_ASSERT_RETURN(name && count && ai, PJ_EINVAL); +#if !defined(PJ_HAS_IPV6) || !PJ_HAS_IPV6 + if (af == PJ_AF_INET6) + return PJ_EIPV6NOTSUP; +#endif + // Return failure if access point is marked as down by app. PJ_SYMBIAN_CHECK_CONNECTION(); - + // Get resolver for the specified address family RHostResolver &resv = PjSymbianOS::Instance()->GetResolver(af); |