From 1cb4662fa3084e47b21509a54a711ecef28ab3a1 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 11 Mar 2023 15:56:03 +0000 Subject: Use "if (ptr == NULL)" instead of "if (!ptr)" Requested by jsing --- src/lib/libcrypto/asn1/bio_ndef.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 @@ -/* $OpenBSD: bio_ndef.c,v 1.13 2023/03/11 15:50:13 tb Exp $ */ +/* $OpenBSD: bio_ndef.c,v 1.14 2023/03/11 15:56:03 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -105,14 +105,14 @@ BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; - if (!aux || !aux->asn1_cb) { + if (aux == NULL || aux->asn1_cb == NULL) { ASN1error(ASN1_R_STREAMING_NOT_SUPPORTED); return NULL; } ndef_aux = malloc(sizeof(NDEF_SUPPORT)); asn_bio = BIO_new(BIO_f_asn1()); - if (!ndef_aux || !asn_bio) + if (ndef_aux == NULL || asn_bio == NULL) goto err; if ((out = BIO_push(asn_bio, out)) == NULL) -- cgit v1.2.3-55-g6feb