1
0
mirror of https://github.com/coturn/coturn.git synced 2025-10-28 21:41:29 +01:00

ssl fixes

This commit is contained in:
mom040267 2015-01-13 07:45:39 +00:00
parent a2ca178ff7
commit d0c0359011

View File

@ -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)) {