This commit is contained in:
Bodo Möller 1999-07-02 14:23:33 +00:00
parent e105643595
commit 1afd8b3942
2 changed files with 2 additions and 2 deletions

View File

@ -412,7 +412,7 @@ static int write_pending(SSL *s, const unsigned char *buf, unsigned int len)
* write */
if ((s->s2->wpend_tot > (int)len) ||
((s->s2->wpend_buf != buf) &&
(!s->mode & SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER)))
!(s->mode & SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER)))
{
SSLerr(SSL_F_WRITE_PENDING,SSL_R_BAD_WRITE_RETRY);
return(-1);

View File

@ -603,7 +603,7 @@ static int ssl3_write_pending(SSL *s, int type, const unsigned char *buf,
/* XXXX */
if ((s->s3->wpend_tot > (int)len)
|| ((s->s3->wpend_buf != buf) &&
(!s->mode & SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER))
!(s->mode & SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER))
|| (s->s3->wpend_type != type))
{
SSLerr(SSL_F_SSL3_WRITE_PENDING,SSL_R_BAD_WRITE_RETRY);