From 91632d64f1cea033ae1edbe0c0de43ff9929b504 Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Sun, 26 Mar 2017 21:20:50 +0900 Subject: [PATCH] word32 casting inSz, wolfSSL_d2i_PrivateKey --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index c95e4b422..0a6daf152 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -7129,7 +7129,7 @@ WOLFSSL_EVP_PKEY* wolfSSL_d2i_PrivateKey(int type, WOLFSSL_EVP_PKEY** out, /* advance pointer with success */ if (local != NULL) { - if ((idx + local->pkey_sz) <= inSz) { + if ((idx + local->pkey_sz) <= (word32)inSz) { *in = *in + idx + local->pkey_sz; } }