aboutsummaryrefslogtreecommitdiffstats
path: root/apps/s_client.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2012-01-12 16:21:35 +0000
committerAndy Polyakov <appro@openssl.org>2012-01-12 16:21:35 +0000
commita50bce82ecccdfac135aeefe3d4ad9713829f477 (patch)
tree3ef86690d278ad8cec0c32a76645846a82439968 /apps/s_client.c
parent713f49119fcf24cf2c196262c5be46cb61390bf5 (diff)
downloadopenssl-a50bce82ecccdfac135aeefe3d4ad9713829f477.tar.gz
Sanitize usage of <ctype.h> functions. It's important that characters
are passed zero-extended, not sign-extended. 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 84ba86e945..dbc0700ded 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;