diff options
author | Richard Levitte <levitte@openssl.org> | 2002-04-20 10:23:19 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-04-20 10:23:19 +0000 |
commit | 8b07f23c30cbab65054b4c1df6c1a0c4432ea3d9 (patch) | |
tree | 1a5f0ca348ca4db1b212cc360883c29e1ab2296c /ssl/s3_pkt.c | |
parent | 45932ad508ae6d022fcbd893de8fc20296185e94 (diff) |
Signedness mismatch.
Notified by Bernd Matthes <bernd.matthes@gemplus.com>
Diffstat (limited to 'ssl/s3_pkt.c')
-rw-r--r-- | ssl/s3_pkt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 5e60e18972..e411fb5a03 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -245,7 +245,7 @@ static int ssl3_get_record(SSL *s) extra=SSL3_RT_MAX_EXTRA; else extra=0; - if (extra != (s->s3->rbuf.len - SSL3_RT_MAX_PACKET_SIZE)) + if ((size_t)extra != (s->s3->rbuf.len - SSL3_RT_MAX_PACKET_SIZE)) { /* actually likely an application error: SLS_OP_MICROSOFT_BIG_SSLV3_BUFFER * set after ssl3_setup_buffers() was done */ @@ -605,7 +605,7 @@ static int do_ssl3_write(SSL *s, int type, const unsigned char *buf, if (prefix_len <= 0) goto err; - if (s->s3->wbuf.len < prefix_len + SSL3_RT_MAX_PACKET_SIZE) + if (s->s3->wbuf.len < (size_t)prefix_len + SSL3_RT_MAX_PACKET_SIZE) { /* insufficient space */ SSLerr(SSL_F_DO_SSL3_WRITE, ERR_R_INTERNAL_ERROR); |