Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/misc/pkcs12/pkcs12_kdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int pkcs12_kdf( int hash_id,
unsigned int tmp, i, j, n;
unsigned char ch;
unsigned char D[MAXBLOCKSIZE], A[MAXBLOCKSIZE], B[MAXBLOCKSIZE];
unsigned char *I = NULL, *key = NULL;
unsigned char *I, *key;
int err = CRYPT_ERROR;

LTC_ARGCHK(pw != NULL);
Expand Down
2 changes: 1 addition & 1 deletion src/pk/rsa/rsa_import_pkcs8.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ int rsa_import_pkcs8(const unsigned char *in, unsigned long inlen,
if (err != CRYPT_OK) { goto LBL_ERR; }

/* check alg oid */
if ((err = pk_oid_cmp_with_asn1(rsaoid, &alg_seq[0]))) {
if ((err = pk_oid_cmp_with_asn1(rsaoid, &alg_seq[0])) != CRYPT_OK) {
goto LBL_ERR;
}

Expand Down