summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bio_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-09-07 17:42:25 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-09-07 17:42:25 +0000
commitf50c11ca40132a556880d11172694dfec6b90ad2 (patch)
tree517adc477585c81ce433f3350db37d9467f4674a /crypto/bio/bio_lib.c
parentcfd3bb1785581def14fe8851906887d167b2f0f3 (diff)
Ugh, BIO_find_type() cannot be passed a NULL.
Fix doc example, and fix BIO_find_type(). Fix PKCS7_verify(). It was using 'i' for both the loop variable and the verify return value.
Diffstat (limited to 'crypto/bio/bio_lib.c')
-rw-r--r--crypto/bio/bio_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c
index fa32df041e..381afc9b8e 100644
--- a/crypto/bio/bio_lib.c
+++ b/crypto/bio/bio_lib.c
@@ -418,6 +418,7 @@ BIO *BIO_find_type(BIO *bio, int type)
{
int mt,mask;
+ if(!bio) return NULL;
mask=type&0xff;
do {
if (bio->method != NULL)