Typo.
[openssl.git] / apps / req.c
index 10879b0..e69d451 100644 (file)
@@ -1008,7 +1008,7 @@ loop:
                        }
                fprintf(stdout,"Modulus=");
 #ifndef OPENSSL_NO_RSA
                        }
                fprintf(stdout,"Modulus=");
 #ifndef OPENSSL_NO_RSA
-               if (EVP_PKEY_base_id(tpubkey))
+               if (EVP_PKEY_base_id(tpubkey) == EVP_PKEY_RSA)
                        BN_print(out,tpubkey->pkey.rsa->n);
                else
 #endif
                        BN_print(out,tpubkey->pkey.rsa->n);
                else
 #endif