summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMamadou DIOP <bossiel@yahoo.fr>2016-05-31 16:28:30 +0200
committerMamadou DIOP <bossiel@yahoo.fr>2016-05-31 16:28:30 +0200
commit1292f762bc688eff7cf80ac28902f8e3dada467a (patch)
tree97593d174f4934d02931ea211d91a53a0541b23c
parente43677df4b037ce214f8e223c0fa26d8178e84d9 (diff)
downloaddoubango-1292f762bc688eff7cf80ac28902f8e3dada467a.zip
doubango-1292f762bc688eff7cf80ac28902f8e3dada467a.tar.gz
Fix crash
-rwxr-xr-xtinyMEDIA/src/tmedia_session.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud