Skip to content

Commit

Permalink
[core] Fixed unhandled error in haicrypt (#2685).
Browse files Browse the repository at this point in the history
  • Loading branch information
ethouris committed Jun 29, 2023
1 parent 421f4e1 commit 10e71a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haicrypt/hcrypt.c
Expand Up @@ -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
Expand Down

0 comments on commit 10e71a6

Please sign in to comment.