return 0 if 'noout' is used and no error has occurred
authorNils Larsch <nils@openssl.org>
Tue, 5 Dec 2006 20:09:25 +0000 (20:09 +0000)
committerNils Larsch <nils@openssl.org>
Tue, 5 Dec 2006 20:09:25 +0000 (20:09 +0000)
PR: 1435
Submitted by: "Haridharan" <haridharan@gmail.com>

apps/ec.c

index 9ddaddf..c63437f 100644 (file)
--- a/apps/ec.c
+++ b/apps/ec.c
@@ -347,7 +347,10 @@ bad:
                        }
 
        if (noout) 
+               {
+               ret = 0;
                goto end;
+               }
 
        BIO_printf(bio_err, "writing EC key\n");
        if (outformat == FORMAT_ASN1)