Fix signed/unsigned warning.
This commit is contained in:
parent
d6934a02b5
commit
989d87cb1a
@ -580,10 +580,11 @@ int ssl3_do_compress(SSL *ssl)
|
|||||||
int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
|
int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
|
||||||
{
|
{
|
||||||
const unsigned char *buf=buf_;
|
const unsigned char *buf=buf_;
|
||||||
unsigned int tot,n,nw;
|
unsigned int n,nw;
|
||||||
int i;
|
int i,tot;
|
||||||
|
|
||||||
s->rwstate=SSL_NOTHING;
|
s->rwstate=SSL_NOTHING;
|
||||||
|
OPENSSL_assert(s->s3->wnum < INT_MAX);
|
||||||
tot=s->s3->wnum;
|
tot=s->s3->wnum;
|
||||||
s->s3->wnum=0;
|
s->s3->wnum=0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user