diff --git a/dsoftbus/hichain/huks/0001-support-huks-for-openeuler.patch b/dsoftbus/hichain/huks/0001-support-huks-for-openeuler.patch index af8eebe35cbcb2afacf803427b19bee8da5aac9e..ebeb757fdb3b64b4c5eb00b3cb0cfb584b240c25 100644 --- a/dsoftbus/hichain/huks/0001-support-huks-for-openeuler.patch +++ b/dsoftbus/hichain/huks/0001-support-huks-for-openeuler.patch @@ -74,7 +74,7 @@ index 258b206..5db3e4d 100755 } - if (EVP_PKEY_derive(pctx, derivedKey->data, (size_t *)&derivedKey->size) <= 0) { + size_t new = derivedKey->size; -+ if (EVP_PKEY_derive(pctx, derivedKey->data, &new)) { ++ if (EVP_PKEY_derive(pctx, derivedKey->data, &new) <= 0) { HksLogOpensslError(); break; }