From 10e71a673873bb8d9612392b503d628419f5d938 Mon Sep 17 00:00:00 2001 From: Sektor van Skijlen Date: Thu, 29 Jun 2023 12:45:33 +0200 Subject: [PATCH] [core] Fixed unhandled error in haicrypt (#2685). --- haicrypt/hcrypt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/haicrypt/hcrypt.c b/haicrypt/hcrypt.c index 3b4b98ece..2568654b1 100644 --- a/haicrypt/hcrypt.c +++ b/haicrypt/hcrypt.c @@ -240,7 +240,8 @@ int HaiCrypt_Clone(HaiCrypt_Handle hhcSrc, HaiCrypt_CryptoDir tx, HaiCrypt_Handl if (tx) { HaiCrypt_Cfg crypto_config; - HaiCrypt_ExtractConfig(hhcSrc, &crypto_config); + if (-1 == HaiCrypt_ExtractConfig(hhcSrc, &crypto_config)) + return -1; /* * Just invert the direction written in flags and use the