diff --git a/src/ssl.c b/src/ssl.c index 85c8854973..11665a27d4 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -15486,7 +15486,7 @@ int wolfSSL_BUF_MEM_resize(WOLFSSL_BUF_MEM* buf, size_t len) /* verify provided arguments. The return value is an int, so reject any * len that cannot be represented as a positive int. */ - if (buf == NULL || len == 0 || len > (size_t)WOLFSSL_MAX_32BIT) { + if (buf == NULL || len == 0 || len > (size_t)WC_MAX_SINT_OF(int)) { return 0; /* BAD_FUNC_ARG; */ }