diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2017-03-14 11:37:42 -0500 |
---|---|---|
committer | Benjamin Kaduk <bkaduk@akamai.com> | 2017-03-14 11:44:34 -0500 |
commit | 96a5d7fdbaa7aea5e5090e0f7dc2973943986fc9 (patch) | |
tree | 061a7d56fa43ff2431445c4765075a9300e5dbf0 /apps/s_client.c | |
parent | aebe9e399109dcde63a1d0328ffdfc5619b49431 (diff) |
Fix a -Wsign-compare warning
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2940)
Diffstat (limited to 'apps/s_client.c')
-rw-r--r-- | apps/s_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index e180772e7f..67e9a92572 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -174,7 +174,7 @@ static unsigned int psk_client_cb(SSL *ssl, const char *hint, char *identity, psk_key); return 0; } - if (key_len > max_psk_len) { + if (max_psk_len > INT_MAX || key_len > (long)max_psk_len) { BIO_printf(bio_err, "psk buffer of callback is too small (%d) for key (%ld)\n", max_psk_len, key_len); |