From 1292f762bc688eff7cf80ac28902f8e3dada467a Mon Sep 17 00:00:00 2001 From: Mamadou DIOP Date: Tue, 31 May 2016 16:28:30 +0200 Subject: Fix crash --- tinyMEDIA/src/tmedia_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinyMEDIA') diff --git a/tinyMEDIA/src/tmedia_session.c b/tinyMEDIA/src/tmedia_session.c index b41ef9a..40a9179 100755 --- a/tinyMEDIA/src/tmedia_session.c +++ b/tinyMEDIA/src/tmedia_session.c @@ -830,7 +830,7 @@ tmedia_session_mgr_t* tmedia_session_mgr_create(tmedia_type_t type, const char* /* init */ mgr->type = type; mgr->addr = tsk_strdup(addr); - mgr->addr_type = tsk_strempty(mgr->addr) + mgr->addr_type = tsk_strnullORempty(mgr->addr) ? (use_ipv6 ? tnet_socket_type_udp_ipv6 : tnet_socket_type_udp_ipv4) : (tnet_is_ipv6(mgr->addr, 0) ? tnet_socket_type_udp_ipv6 : tnet_socket_type_udp_ipv4); mgr->use_ipv6 = use_ipv6; -- cgit v1.1