summaryrefslogtreecommitdiff
path: root/pjsip
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-12-05 04:09:59 +0000
committerBenny Prijono <bennylp@teluu.com>2007-12-05 04:09:59 +0000
commitdcffa972cdec00f74ff6dfd0c730344c32e43278 (patch)
tree1db5f50fb77a3c197aab5a9cbfb81b1fdd234417 /pjsip
parent49ef04a6eae12130b707ed92737fc1c804519f93 (diff)
Fixed error when creating TLS transport in pjsua-lib (the TLS type was misidentified was UDP)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1618 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_core.c b/pjsip/src/pjsua-lib/pjsua_core.c
index ff9b36fa..653d63a0 100644
--- a/pjsip/src/pjsua-lib/pjsua_core.c
+++ b/pjsip/src/pjsua-lib/pjsua_core.c
@@ -1346,7 +1346,7 @@ PJ_DEF(pj_status_t) pjsua_transport_create( pjsip_transport_type_e type,
}
/* Create the transport */
- if (type & PJSIP_TRANSPORT_UDP) {
+ if (type==PJSIP_TRANSPORT_UDP || type==PJSIP_TRANSPORT_UDP6) {
/*
* Create UDP transport (IPv4 or IPv6).
*/
@@ -1407,7 +1407,7 @@ PJ_DEF(pj_status_t) pjsua_transport_create( pjsip_transport_type_e type,
#if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0
- } else if (type == PJSIP_TRANSPORT_TCP) {
+ } else if (type == PJSIP_TRANSPORT_TCP || type == PJSIP_TRANSPORT_TCP6) {
/*
* Create TCP transport.
*/