Skip to content

Commit 698790f

Browse files
committed
explicit condition
1 parent e5f56d4 commit 698790f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pk/rsa/rsa_import_pkcs8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ int rsa_import_pkcs8(const unsigned char *in, unsigned long inlen,
113113
if (err != CRYPT_OK) { goto LBL_ERR; }
114114

115115
/* check alg oid */
116-
if ((err = pk_oid_cmp_with_asn1(rsaoid, &alg_seq[0]))) {
116+
if ((err = pk_oid_cmp_with_asn1(rsaoid, &alg_seq[0])) != CRYPT_OK) {
117117
goto LBL_ERR;
118118
}
119119

0 commit comments

Comments
 (0)