Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-01-17 03:49:52 +0300
committerRichard Levitte <levitte@openssl.org>2000-01-17 03:49:52 +0300
commitb058a08085af113a6b82f9d7a2066bba1491c244 (patch)
treeb4ef84ec834de7bcd888da127e9c143964873260 /ssl/s3_pkt.c
parente7399bf592a09e22ff6dfc943676e8bcb3aab962 (diff)
It doesn't make sense to try see if these variables are negative, since they're unsigned.
Diffstat (limited to 'ssl/s3_pkt.c')
-rw-r--r--ssl/s3_pkt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c
index ae8b981eee..cac7953e31 100644
--- a/ssl/s3_pkt.c
+++ b/ssl/s3_pkt.c
@@ -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;