diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-05-07 17:16:48 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-05-12 15:04:01 +0200 |
commit | 4329f361ce75973ceca9d440e8430580ee515070 (patch) | |
tree | 409fafba01b0bebb5d246b0854517baf1e8bddb6 /crypto/asn1/a_d2i_fp.c | |
parent | 202cbdd2fc37257870eeb61629d8d4d6709df7f1 (diff) |
Add ASN1_item_i2d_mem_bio(); document and improve also ASN1_item_d2i_bio()
ASN1_item_d2i_bio(): Do not report errors in queue on BIO input being NULL
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15147)
Diffstat (limited to 'crypto/asn1/a_d2i_fp.c')
-rw-r--r-- | crypto/asn1/a_d2i_fp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/a_d2i_fp.c b/crypto/asn1/a_d2i_fp.c index b6faa0f2ae..2c7acb34e0 100644 --- a/crypto/asn1/a_d2i_fp.c +++ b/crypto/asn1/a_d2i_fp.c @@ -62,6 +62,8 @@ void *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x) void *ret = NULL; int len; + if (in == NULL) + return NULL; len = asn1_d2i_read_bio(in, &b); if (len < 0) goto err; |