diff --git a/cyassl.vcproj b/cyassl.vcproj index 82f919d25..7005e3aaf 100755 --- a/cyassl.vcproj +++ b/cyassl.vcproj @@ -49,6 +49,7 @@ UsePrecompiledHeader="0" WarningLevel="4" DebugInformationFormat="4" + DisableSpecificWarnings="4206" /> 0 && (p = (char)XTOLOWER(*pattern++))) { + while (len > 0) { + + p = (char)XTOLOWER(*pattern++); + if (p == '*') { while (--len > 0 && (p = (char)XTOLOWER(*pattern++)) == '*') ; @@ -3699,7 +3702,9 @@ static int DoHelloRequest(CYASSL* ssl, const byte* input, word32* inOutIdx, int DoFinished(CYASSL* ssl, const byte* input, word32* inOutIdx, word32 size, word32 totalSz, int sniff) { - if ((ssl->options.tls ? TLS_FINISHED_SZ : FINISHED_SZ) != size) + word32 finishedSz = (ssl->options.tls ? TLS_FINISHED_SZ : FINISHED_SZ); + + if (finishedSz != size) return BUFFER_ERROR; #ifdef CYASSL_CALLBACKS