Merge pull request #616 from SparkiDev/pkcs11_test_c_fix

pkcs11_test.c: fix uninitialized
pull/619/head
philljj 2026-08-20 16:29:42 -05:00 committed by GitHub
commit 219ba675be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ int get_public_key(RsaKey* key, Pkcs11Token* token, CK_SESSION_HANDLE session,
int ret = 0; int ret = 0;
unsigned char* mod = NULL; unsigned char* mod = NULL;
unsigned char* exp = NULL; unsigned char* exp = NULL;
int modSz, expSz; int modSz = 0, expSz = 0;
CK_ATTRIBUTE template[] = { CK_ATTRIBUTE template[] = {
{CKA_MODULUS, NULL_PTR, 0}, {CKA_MODULUS, NULL_PTR, 0},
{CKA_PUBLIC_EXPONENT, NULL_PTR, 0} {CKA_PUBLIC_EXPONENT, NULL_PTR, 0}