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/ca.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/ca.c')
-rw-r--r-- | apps/ca.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |