diff options
author | Rich Salz <rsalz@openssl.org> | 2016-07-27 11:09:07 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-07-28 11:48:59 -0400 |
commit | cdddc96d5defb418457b91817650971311816298 (patch) | |
tree | 74171efbd7b0c85de640cf95df132c7350768232 /ssl | |
parent | 68bc6b7a36be4b635adb8d6ac0c849c51dcd8543 (diff) | |
download | openssl-new-cdddc96d5defb418457b91817650971311816298.tar.gz |
Add missing casts.
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_srvr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index c95d6102fa..b5eff987f7 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -980,7 +980,8 @@ int ssl3_get_client_hello(SSL *s) session_length = *(p + SSL3_RANDOM_SIZE); - if (SSL3_RANDOM_SIZE + session_length + 1 >= (d + n) - p) { + if (SSL3_RANDOM_SIZE + session_length + 1 + >= (unsigned int)((d + n) - p)) { al = SSL_AD_DECODE_ERROR; SSLerr(SSL_F_SSL3_GET_CLIENT_HELLO, SSL_R_LENGTH_TOO_SHORT); goto f_err; @@ -1061,7 +1062,7 @@ int ssl3_get_client_hello(SSL *s) } cookie_len = *(p++); - if ((d + n ) - p < cookie_len) { + if ((unsigned int)((d + n ) - p) < cookie_len) { al = SSL_AD_DECODE_ERROR; SSLerr(SSL_F_SSL3_GET_CLIENT_HELLO, SSL_R_LENGTH_TOO_SHORT); goto f_err; |