From 79682fd30a6a624c2126f8e79770b2e065226c5c Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 6 Oct 2021 20:11:17 +0200 Subject: [PATCH] #15 --- src/ssl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index d14f7d2fc..da5b84bd8 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -19141,7 +19141,11 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out, WOLFSSL_ENTER("DES_cbc_encrypt"); /* OpenSSL compat, no ret */ - wc_Des_SetKey(&myDes, (const byte*)schedule, (const byte*)ivec, !enc); + if (wc_Des_SetKey(&myDes, (const byte*)schedule, (const byte*)ivec, + !enc) != 0) { + WOLFSSL_MSG("wc_Des_SetKey return error."); + return; + } lb_sz = length%DES_BLOCK_SIZE; blk = length/DES_BLOCK_SIZE;