summaryrefslogtreecommitdiffstats
path: root/apps/s_server.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2012-01-12 16:37:20 +0000
committerAndy Polyakov <appro@openssl.org>2012-01-12 16:37:20 +0000
commit27b1f137ff76def14a1b71c8867ab7ffed3ce69e (patch)
treedc00965ed027da80624c0fdf30c755f48bb3e2b6 /apps/s_server.c
parentf63c927e8e47f46f52f84d5935daf0122bd2d9a5 (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_server.c')
-rw-r--r--apps/s_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index 8a0c34cf0f..a3a04d4734 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -1103,7 +1103,7 @@ int MAIN(int argc, char *argv[])
psk_key=*(++argv);
for (i=0; i<strlen(psk_key); i++)
{
- if (isxdigit((int)psk_key[i]))
+ if (isxdigit((unsigned char)psk_key[i]))
continue;
BIO_printf(bio_err,"Not a hex number '%s'\n",*argv);
goto bad;