diff options
author | Andy Polyakov <appro@openssl.org> | 2012-01-12 16:21:35 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-01-12 16:21:35 +0000 |
commit | a50bce82ecccdfac135aeefe3d4ad9713829f477 (patch) | |
tree | 3ef86690d278ad8cec0c32a76645846a82439968 /apps/s_client.c | |
parent | 713f49119fcf24cf2c196262c5be46cb61390bf5 (diff) | |
download | openssl-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.c | 2 |
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; |