aboutsummaryrefslogtreecommitdiffstats
path: root/apps/ca.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/ca.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/ca.c')
-rw-r--r--apps/ca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/ca.c b/apps/ca.c
index de3122b7ec..1cf50e0029 100644
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -2561,7 +2561,7 @@ static int get_certificate_status(const char *serial, CA_DB *db)
/* Make it Upper Case */
for (i=0; row[DB_serial][i] != '\0'; i++)
- row[DB_serial][i] = toupper(row[DB_serial][i]);
+ row[DB_serial][i] = toupper((unsigned char)row[DB_serial][i]);
ok=1;