From 8125071905365315bde5f5200a3699a69d65c302 Mon Sep 17 00:00:00 2001 From: Sektor van Skijlen Date: Thu, 9 Mar 2023 18:36:52 +0100 Subject: [PATCH] [MAINT] Fixed unhandled error in haicrypt --- haicrypt/hcrypt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/haicrypt/hcrypt.c b/haicrypt/hcrypt.c index d5178ccdd..56c41ef47 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