Fixed the fix of CID 578018

This commit is contained in:
David Kubasek
2021-03-05 14:59:18 +01:00
parent 175fe250ba
commit d01d32b6ed

View File

@ -40281,7 +40281,7 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl)
WOLFSSL_MSG("Serial size error");
return WOLFSSL_FAILURE;
}
if (sizeof(cert->serial) < serialSz) {
if ((int)sizeof(cert->serial) < serialSz) {
WOLFSSL_MSG("Serial buffer too small");
return BUFFER_E;
}