diff options
author | Ben Laurie <ben@openssl.org> | 2008-12-26 15:32:59 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2008-12-26 15:32:59 +0000 |
commit | ccf529928f0d032d8a83b54c0f7c546e59669811 (patch) | |
tree | 30c3ad861df8a4493e433c876561b60022346de2 /crypto/asn1/bio_ndef.c | |
parent | 5ceb595dfa7e0919c5e2e8c9b49a221731e2baf6 (diff) |
!a && !a->b is clearly wrong! Changed to !a || !a->b (Coverity ID 145).
Diffstat (limited to 'crypto/asn1/bio_ndef.c')
-rw-r--r-- | crypto/asn1/bio_ndef.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/bio_ndef.c b/crypto/asn1/bio_ndef.c index 96074802d3..370389b1e6 100644 --- a/crypto/asn1/bio_ndef.c +++ b/crypto/asn1/bio_ndef.c @@ -108,7 +108,7 @@ BIO *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 || !aux->asn1_cb) { ASN1err(ASN1_F_BIO_NEW_NDEF, ASN1_R_STREAMING_NOT_SUPPORTED); return NULL; |