Added OPENSSL_assert check as per PR#3377 reported by Rainer Jung <rainer.jung@kippdata.de>

This commit is contained in:
Matt Caswell 2014-06-12 20:38:45 +01:00
parent 2eab488c02
commit 955bfbc268

View File

@ -605,6 +605,7 @@ int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
int i;
s->rwstate=SSL_NOTHING;
OPENSSL_assert(s->s3->wnum <= INT_MAX);
tot=s->s3->wnum;
s->s3->wnum=0;