summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509v3
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-01 15:39:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-01 15:39:53 +0000
commitd2789ab75f534ae4fe665d1ecefec3601d00a9e4 (patch)
treec5ffd5317cdf3cace0aa47bb5ee1ee7d9e29ad9b /lib/libcrypto/x509v3
parenta918d16c5c56917eca54272018ae30883ed218ec (diff)
There is no need for is{upper,lower}() tests before to{lower,uppper}(),
since all other characters are mapped through transparently. ok jsing
Diffstat (limited to 'lib/libcrypto/x509v3')
-rw-r--r--lib/libcrypto/x509v3/v3_utl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libcrypto/x509v3/v3_utl.c b/lib/libcrypto/x509v3/v3_utl.c
index bf6f81a5e9b..4f4dc15221e 100644
--- a/lib/libcrypto/x509v3/v3_utl.c
+++ b/lib/libcrypto/x509v3/v3_utl.c
@@ -468,10 +468,8 @@ string_to_hex(const char *str, long *len)
free(hexbuf);
return NULL;
}
- if (isupper(ch))
- ch = tolower(ch);
- if (isupper(cl))
- cl = tolower(cl);
+ ch = tolower(ch);
+ cl = tolower(cl);
if ((ch >= '0') && (ch <= '9'))
ch -= '0';