]> granicus.if.org Git - openssl/commitdiff
return 0 if 'noout' is used and no has occurred
authorNils Larsch <nils@openssl.org>
Tue, 5 Dec 2006 20:08:03 +0000 (20:08 +0000)
committerNils Larsch <nils@openssl.org>
Tue, 5 Dec 2006 20:08:03 +0000 (20:08 +0000)
PR: 1435
Submitted by: "Haridharan" <haridharan@gmail.com>

apps/ec.c

index 9ddaddfe5e7033858f749b7c52f359e9d7a7462b..c63437fe2acd566b3b1766aad63225cdb1f57325 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)