TLS1.2 fixed

This commit is contained in:
Oleg Moskalenko 2016-12-07 23:40:36 -08:00
parent 516e534ef2
commit 069f813cd5
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
10/17/2016 Oleg Moskalenko <mom040267@gmail.com>
Version 4.5.0.6 'dan Eider':
- Typos in the text fixed.
- TLS1.2 support fixed.
08/27/2016 Oleg Moskalenko <mom040267@gmail.com>
Version 4.5.0.5 'dan Eider':

View File

@ -2179,7 +2179,7 @@ static TURN_TLS_TYPE check_tentative_tls(ioa_socket_raw fd)
if(len>0 && ((size_t)len == sizeof(s))) {
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)
if(s[10] > max_supported)
ret = TURN_TLS_SSL23; /* compatibility mode */
else
ret = (TURN_TLS_TYPE)(s[10]+1);