projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aebe9e3
)
Fix a -Wsign-compare warning
author
Benjamin Kaduk
<bkaduk@akamai.com>
Tue, 14 Mar 2017 16:37:42 +0000
(11:37 -0500)
committer
Benjamin Kaduk
<bkaduk@akamai.com>
Tue, 14 Mar 2017 16:44:34 +0000
(11:44 -0500)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2940)
apps/s_client.c
patch
|
blob
|
history
diff --git
a/apps/s_client.c
b/apps/s_client.c
index e180772e7f78d65b6ed483cbf2cc6ac6c2da5c34..67e9a925726ec89aa035c7f11af747a15d25dd00 100644
(file)
--- 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);