From d0c0359011a76e8225b0bb6409abb05e7332e61c Mon Sep 17 00:00:00 2001 From: mom040267 Date: Tue, 13 Jan 2015 07:45:39 +0000 Subject: [PATCH] ssl fixes --- src/apps/relay/ns_ioalib_engine_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/relay/ns_ioalib_engine_impl.c b/src/apps/relay/ns_ioalib_engine_impl.c index d1f2d4e0..59104bf0 100644 --- a/src/apps/relay/ns_ioalib_engine_impl.c +++ b/src/apps/relay/ns_ioalib_engine_impl.c @@ -2263,7 +2263,7 @@ static TURN_TLS_TYPE check_tentative_tls(ioa_socket_raw fd) if((s[0]==22)&&(s[1]==3)&&(s[5]==1)&&(s[9]==3)) { char max_supported = (char)(TURN_TLS_TOTAL-2); if(s[10] >= max_supported) - ret = (TURN_TLS_TYPE)((((int)TURN_TLS_TOTAL)-1)); + ret = TURN_TLS_SSL23; /* compatibility mode */ else ret = (TURN_TLS_TYPE)(s[10]+1); } else if((s[2]==1)&&(s[3]==3)) {