Fix for cache only SNI and TLS v1.3

This commit is contained in:
Sean Parkinson
2017-06-12 09:46:50 +10:00
parent fdcf25b6d1
commit 044417ba01

View File

@ -1595,7 +1595,7 @@ static int TLSX_SNI_Parse(WOLFSSL* ssl, byte* input, word16 length,
/* Don't process the second ClientHello SNI extension if there /* Don't process the second ClientHello SNI extension if there
* was problems with the first. * was problems with the first.
*/ */
if (sni->status != 0) if (!cacheOnly && sni->status != 0)
break; break;
#endif #endif
byte matched = cacheOnly || byte matched = cacheOnly ||