projects
/
platform
/
upstream
/
openssl1.1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.1.1l
[platform/upstream/openssl1.1.git]
/
crypto
/
asn1
/
bio_ndef.c
diff --git
a/crypto/asn1/bio_ndef.c
b/crypto/asn1/bio_ndef.c
index
d7d7d80
..
760e484
100644
(file)
--- a/
crypto/asn1/bio_ndef.c
+++ b/
crypto/asn1/bio_ndef.c
@@
-142,6
+142,9
@@
static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen,
ndef_aux = *(NDEF_SUPPORT **)parg;
+ if (ndef_aux == NULL)
+ return 0;
+
OPENSSL_free(ndef_aux->derbuf);
ndef_aux->derbuf = NULL;