Browse Source

explicit condition

Francois Perrad 7 years ago
parent
commit
698790fdeb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pk/rsa/rsa_import_pkcs8.c

+ 1 - 1
src/pk/rsa/rsa_import_pkcs8.c

@@ -113,7 +113,7 @@ int rsa_import_pkcs8(const unsigned char *in, unsigned long inlen,
    if (err != CRYPT_OK) { goto LBL_ERR; }
    if (err != CRYPT_OK) { goto LBL_ERR; }
 
 
    /* check alg oid */
    /* 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;
       goto LBL_ERR;
    }
    }