From d01d32b6ed0cbc52c5436070d27eaa50a025a504 Mon Sep 17 00:00:00 2001 From: David Kubasek Date: Fri, 5 Mar 2021 14:59:18 +0100 Subject: [PATCH] Fixed the fix of CID 578018 --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index d1e878e16..33092daf2 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -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; }