diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/asn1/bio_ndef.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/bio_ndef.c b/src/lib/libcrypto/asn1/bio_ndef.c index 7ef08764aa..33dfe73fc9 100644 --- a/src/lib/libcrypto/asn1/bio_ndef.c +++ b/src/lib/libcrypto/asn1/bio_ndef.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bio_ndef.c,v 1.13 2023/03/11 15:50:13 tb Exp $ */ | 1 | /* $OpenBSD: bio_ndef.c,v 1.14 2023/03/11 15:56:03 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project. | 3 | * project. |
| 4 | */ | 4 | */ |
| @@ -105,14 +105,14 @@ BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) | |||
| 105 | const ASN1_AUX *aux = it->funcs; | 105 | const ASN1_AUX *aux = it->funcs; |
| 106 | ASN1_STREAM_ARG sarg; | 106 | ASN1_STREAM_ARG sarg; |
| 107 | 107 | ||
| 108 | if (!aux || !aux->asn1_cb) { | 108 | if (aux == NULL || aux->asn1_cb == NULL) { |
| 109 | ASN1error(ASN1_R_STREAMING_NOT_SUPPORTED); | 109 | ASN1error(ASN1_R_STREAMING_NOT_SUPPORTED); |
| 110 | return NULL; | 110 | return NULL; |
| 111 | } | 111 | } |
| 112 | ndef_aux = malloc(sizeof(NDEF_SUPPORT)); | 112 | ndef_aux = malloc(sizeof(NDEF_SUPPORT)); |
| 113 | asn_bio = BIO_new(BIO_f_asn1()); | 113 | asn_bio = BIO_new(BIO_f_asn1()); |
| 114 | 114 | ||
| 115 | if (!ndef_aux || !asn_bio) | 115 | if (ndef_aux == NULL || asn_bio == NULL) |
| 116 | goto err; | 116 | goto err; |
| 117 | 117 | ||
| 118 | if ((out = BIO_push(asn_bio, out)) == NULL) | 118 | if ((out = BIO_push(asn_bio, out)) == NULL) |
