diff options
author | Richard Levitte <levitte@openssl.org> | 2016-03-09 08:18:54 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-03-09 08:58:43 +0100 |
commit | 6b99e875d823033227696c9d03968f8e4a3e28ef (patch) | |
tree | ad6cb2a210270840508aed0bf8b47f501b43ae7a /ssl | |
parent | Fix names of the #define used for platform specific code (diff) | |
download | openssl-6b99e875d823033227696c9d03968f8e4a3e28ef.tar.xz openssl-6b99e875d823033227696c9d03968f8e4a3e28ef.zip |
Counter mixed signedness with a cast
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 75e81252b3..f6bf42d1e5 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1717,7 +1717,7 @@ long SSL_ctrl(SSL *s, int cmd, long larg, void *parg) s->split_send_fragment = s->max_send_fragment; return 1; case SSL_CTRL_SET_SPLIT_SEND_FRAGMENT: - if (larg > s->max_send_fragment || larg == 0) + if ((unsigned int)larg > s->max_send_fragment || larg == 0) return 0; s->split_send_fragment = larg; return 1; @@ -1871,7 +1871,7 @@ long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) ctx->split_send_fragment = ctx->split_send_fragment; return 1; case SSL_CTRL_SET_SPLIT_SEND_FRAGMENT: - if (larg > ctx->max_send_fragment || larg == 0) + if ((unsigned int)larg > ctx->max_send_fragment || larg == 0) return 0; ctx->split_send_fragment = larg; return 1; |