mirror of
https://github.com/openharmony/communication_softbus_lite.git
synced 2026-07-01 20:44:17 -04:00
!40 fix wrong use of the sizeof a pointer.
Merge pull request !40 from zgit2021/master
This commit is contained in:
@@ -31,7 +31,7 @@ unsigned char* GenerateRandomIv(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct HksBlob blob = {sizeof(randomIv), randomIv};
|
||||
struct HksBlob blob = {IV_LEN, randomIv};
|
||||
|
||||
int ret = HksGenerateRandom(NULL, &blob);
|
||||
if (ret != 0) {
|
||||
|
||||
Reference in New Issue
Block a user