diff options
author | Ben Laurie <ben@openssl.org> | 2007-04-05 17:23:51 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2007-04-05 17:23:51 +0000 |
commit | ab2d91bd6b9085b1e406d6cac68c3f6cfdc4522f (patch) | |
tree | ea00c1b4b46bc5338008cd9092da02b3175c9429 /crypto/evp/bio_md.c | |
parent | 3b2eead38167cd11a80ff1da6fffd28f767de05f (diff) | |
download | openssl-ab2d91bd6b9085b1e406d6cac68c3f6cfdc4522f.tar.gz |
Don't copy from a nonexistent next. Coverity ID 47.
Diffstat (limited to 'crypto/evp/bio_md.c')
-rw-r--r-- | crypto/evp/bio_md.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crypto/evp/bio_md.c b/crypto/evp/bio_md.c index f4c0a72981..231b56b65d 100644 --- a/crypto/evp/bio_md.c +++ b/crypto/evp/bio_md.c @@ -157,8 +157,11 @@ static int md_write(BIO *b, const char *in, int inl) (unsigned int)ret); } } - BIO_clear_retry_flags(b); - BIO_copy_next_retry(b); + if(b->next_bio != NULL) + { + BIO_clear_retry_flags(b); + BIO_copy_next_retry(b); + } return(ret); } |