]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps/ciphers: Fix wrong return value when using -convert parameter
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Mon, 23 Aug 2021 09:40:22 +0000 (17:40 +0800)
committerPauli <pauli@openssl.org>
Wed, 25 Aug 2021 23:59:10 +0000 (09:59 +1000)
Command 'openssl ciphers -convert <name>' always returns failure,
this patch set the correct return value.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16383)

(cherry picked from commit 8b4e9c5265ffd3457ad37133502a9d8a4e8daccd)

apps/ciphers.c

index 0bb33a4aca4ba8a166e502e26e6958d4df905f5c..e403130eeb295d5c415dc6cfd9da2e746b048364 100644 (file)
@@ -172,6 +172,7 @@ int ciphers_main(int argc, char **argv)
     if (convert != NULL) {
         BIO_printf(bio_out, "OpenSSL cipher name: %s\n",
                    OPENSSL_cipher_name(convert));
+        ret = 0;
         goto end;
     }