summaryrefslogtreecommitdiffstats
path: root/apps/s_client.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2012-01-12 16:28:03 +0000
committerAndy Polyakov <appro@openssl.org>2012-01-12 16:28:03 +0000
commit9b2a29660bc3b9b7f2ee8df52f7d7a46e20247dc (patch)
treea283ea72cfe0109179b5cc52ade6e8546c18a01b /apps/s_client.c
parentb7b4a9fa5738bdc6a16a1702f48274b58bf2e7b4 (diff)
Sanitize usage of <ctype.h> functions. It's important that characters
are passed zero-extended, not sign-extended [from HEAD]. PR: 2682
Diffstat (limited to 'apps/s_client.c')
-rw-r--r--apps/s_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index b0702ce6fe..22e6762838 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -763,7 +763,7 @@ int MAIN(int argc, char **argv)
psk_key=*(++argv);
for (j = 0; j < strlen(psk_key); j++)
{
- if (isxdigit((int)psk_key[j]))
+ if (isxdigit((unsigned char)psk_key[j]))
continue;
BIO_printf(bio_err,"Not a hex number '%s'\n",*argv);
goto bad;