diff options
author | Ben Laurie <ben@links.org> | 2014-05-19 18:20:54 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-05-19 18:20:54 +0100 |
commit | 989d87cb1a174a951efd829ff6b2f68a322f9df8 (patch) | |
tree | 5eb53e37ea70e3ac09951217fa6f5782b12602b1 | |
parent | d6934a02b5e97c6548d18a74e7b6667dd2617c96 (diff) |
Fix signed/unsigned warning.
-rw-r--r-- | ssl/s3_pkt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index d961d12840..ace10b671d 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -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); |