mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Fix the decoder start type handling
If an explicit decoder start type was provided then it wasn't being handled correctly in all cases. Specifically if a PEM start type was provided then the decoder would fail. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13050)
This commit is contained in:
parent
b565a17d9f
commit
df38dcfcd5
@ -259,7 +259,7 @@ int OSSL_DECODER_CTX_add_extra(OSSL_DECODER_CTX *ctx,
|
||||
* on top of this one, so we don't.
|
||||
*/
|
||||
if (ctx->start_input_type != NULL
|
||||
&& strcasecmp(ctx->start_input_type, input_type) != 0)
|
||||
&& strcasecmp(ctx->start_input_type, input_type) == 0)
|
||||
continue;
|
||||
|
||||
ERR_set_mark();
|
||||
|
Loading…
Reference in New Issue
Block a user