Make -xcert work again.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 14 Feb 2017 17:18:00 +0000 (17:18 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 14 Feb 2017 17:46:47 +0000 (17:46 +0000)
When a certificate is prepended update the list pointer.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2628)

apps/s_cb.c

index e0d432dc75586c16a32280da9cdd941e1ac58f19..0111c24e96305f7154dbf1b4ac8198271020a8fa 100644 (file)
@@ -944,6 +944,7 @@ int args_excert(int opt, SSL_EXCERT **pexc)
             BIO_printf(bio_err, "%s: Error adding xcert\n", opt_getprog());
             goto err;
         }
+        *pexc = exc;
         exc->certfile = opt_arg();
         break;
     case OPT_X_KEY: