From c1ee16822dbc0a88df7885dfbbc7ca095ea72c3b Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Wed, 10 Jul 2024 16:57:08 +0200 Subject: [PATCH] fixup! APPS/load_key_certs_crls(): refactor to clean up the code a little and add clarifying comments --- apps/lib/apps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 6c1cad4107b96a..afc696f3ca18f9 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -952,7 +952,8 @@ int load_key_certs_crls(const char *uri, int format, int maybe_stdin, uri != NULL ? uri : ""); return 0; } - ERR_set_mark(); /* suppress (most) low-level errors during loading */ + /* suppress any extraneous errors left over from failed parse attempts */ + ERR_set_mark(); SET_EXPECT1(ppkey, OSSL_STORE_INFO_PKEY); SET_EXPECT1(ppubkey, OSSL_STORE_INFO_PUBKEY);