diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-03-12 16:35:28 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-03-16 11:25:18 +0100 |
commit | a8275fbc4a252ee3a4d404fa828f04ba267fe085 (patch) | |
tree | 18a5418a248a374940f2e20387470e392465f02f | |
parent | 1e08f3ba9ec495fbd4a4cd6a411dc4e052626eda (diff) |
decoder_process: data_structure can be NULL
Check it before dereferencing.
Fixes #14530
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14531)
-rw-r--r-- | crypto/encode_decode/decoder_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/encode_decode/decoder_lib.c b/crypto/encode_decode/decoder_lib.c index e928561b81..a644924aeb 100644 --- a/crypto/encode_decode/decoder_lib.c +++ b/crypto/encode_decode/decoder_lib.c @@ -608,7 +608,7 @@ static int decoder_process(const OSSL_PARAM params[], void *arg) * too special knowledge. */ trace_data_structure = data_structure; - if (data_type != NULL + if (data_type != NULL && data_structure != NULL && strcasecmp(data_structure, "type-specific") == 0) data_structure = NULL; |