Allow the maximum value.
authorBen Laurie <ben@links.org>
Mon, 19 May 2014 17:21:39 +0000 (18:21 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 12 Jun 2014 19:52:30 +0000 (20:52 +0100)
(Backported as a result of PR#3377 reported by Rainer Jung <rainer.jung@kippdata.de>)

ssl/s3_pkt.c

index b516b6f3e139d1feeabb8bbfd9ea9bc3bed0e824..a419470649363493612c5b93cd8b32a0b09eb5ef 100644 (file)
@@ -534,7 +534,7 @@ int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
        int i,tot;
 
        s->rwstate=SSL_NOTHING;
-       OPENSSL_assert(s->s3->wnum < INT_MAX);
+       OPENSSL_assert(s->s3->wnum <= INT_MAX);
        tot=s->s3->wnum;
        s->s3->wnum=0;