It doesn't make sense to try see if these variables are negative, since they're unsigned.

This commit is contained in:
Richard Levitte
2000-01-17 00:49:52 +00:00
parent e7399bf592
commit b058a08085
3 changed files with 6 additions and 6 deletions

View File

@@ -548,7 +548,7 @@ static int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
/* if it went, fall through and send more stuff */
}
if (len <= 0) return(len);
if (len == 0) return(len);
wr= &(s->s3->wrec);
wb= &(s->s3->wbuf);
@@ -962,7 +962,7 @@ start:
memcpy(buf,&(rr->data[rr->off]),(unsigned int)n);
rr->length-=n;
rr->off+=n;
if (rr->length <= 0)
if (rr->length == 0)
{
s->rstate=SSL_ST_READ_HEADER;
rr->off=0;