Don't copy from a nonexistent next. Coverity ID 47.

This commit is contained in:
Ben Laurie 2007-04-05 17:23:51 +00:00
parent 3b2eead381
commit ab2d91bd6b

View file

@ -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);
}