From dcffa972cdec00f74ff6dfd0c730344c32e43278 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 5 Dec 2007 04:09:59 +0000 Subject: 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 --- pjsip/src/pjsua-lib/pjsua_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pjsip') 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. */ -- cgit v1.2.3