Allow the maximum value.
authorBen Laurie <ben@links.org>
Mon, 19 May 2014 17:21:39 +0000 (18:21 +0100)
committerBen Laurie <ben@links.org>
Mon, 19 May 2014 17:21:39 +0000 (18:21 +0100)
ssl/s3_pkt.c

index ace10b671def5d50add80176e2f7b9587c12f336..2e188af6a625cba5d8d7a08b2d67ccfefd36a238 100644 (file)
@@ -584,7 +584,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;