Return 0 for succesful exit when -noout is used.
authorBodo Möller <bodo@openssl.org>
Tue, 17 Aug 1999 08:33:59 +0000 (08:33 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 17 Aug 1999 08:33:59 +0000 (08:33 +0000)
apps/rsa.c

index 9b723ee..dd58a17 100644 (file)
@@ -288,7 +288,11 @@ bad:
                        }
                }
                
-       if (noout) goto end;
+       if (noout)
+               {
+               ret = 0;
+               goto end;
+               }
        BIO_printf(bio_err,"writing RSA private key\n");
        if      (outformat == FORMAT_ASN1)
                i=i2d_RSAPrivateKey_bio(out,rsa);