Fix signed/unsigned warning.
This commit is contained in:
parent
d6934a02b5
commit
989d87cb1a
1 changed files with 4 additions and 3 deletions
|
@ -580,10 +580,11 @@ int ssl3_do_compress(SSL *ssl)
|
|||
int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
|
||||
{
|
||||
const unsigned char *buf=buf_;
|
||||
unsigned int tot,n,nw;
|
||||
int i;
|
||||
unsigned int n,nw;
|
||||
int i,tot;
|
||||
|
||||
s->rwstate=SSL_NOTHING;
|
||||
OPENSSL_assert(s->s3->wnum < INT_MAX);
|
||||
tot=s->s3->wnum;
|
||||
s->s3->wnum=0;
|
||||
|
||||
|
@ -607,7 +608,7 @@ int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
|
|||
* buffer ... so we trap and report the error in a way the user
|
||||
* will notice
|
||||
*/
|
||||
if ( len < tot)
|
||||
if (len < tot)
|
||||
{
|
||||
SSLerr(SSL_F_SSL3_WRITE_BYTES,SSL_R_BAD_LENGTH);
|
||||
return(-1);
|
||||
|
|
Loading…
Reference in a new issue