diff options
author | deraadt <> | 2014-06-01 15:39:52 +0000 |
---|---|---|
committer | deraadt <> | 2014-06-01 15:39:52 +0000 |
commit | fbd9ff3897ff9e100514731e2a4e2398e392c69b (patch) | |
tree | ba4eb6eea9ebe3252938a9c96edb36559bb83100 /src/lib/libcrypto/x509v3 | |
parent | 8651fd5ff025be46cca91efe623b138186b69326 (diff) | |
download | openbsd-fbd9ff3897ff9e100514731e2a4e2398e392c69b.tar.gz openbsd-fbd9ff3897ff9e100514731e2a4e2398e392c69b.tar.bz2 openbsd-fbd9ff3897ff9e100514731e2a4e2398e392c69b.zip |
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 'src/lib/libcrypto/x509v3')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_utl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_utl.c b/src/lib/libcrypto/x509v3/v3_utl.c index bf6f81a5e9..4f4dc15221 100644 --- a/src/lib/libcrypto/x509v3/v3_utl.c +++ b/src/lib/libcrypto/x509v3/v3_utl.c | |||
@@ -468,10 +468,8 @@ string_to_hex(const char *str, long *len) | |||
468 | free(hexbuf); | 468 | free(hexbuf); |
469 | return NULL; | 469 | return NULL; |
470 | } | 470 | } |
471 | if (isupper(ch)) | 471 | ch = tolower(ch); |
472 | ch = tolower(ch); | 472 | cl = tolower(cl); |
473 | if (isupper(cl)) | ||
474 | cl = tolower(cl); | ||
475 | 473 | ||
476 | if ((ch >= '0') && (ch <= '9')) | 474 | if ((ch >= '0') && (ch <= '9')) |
477 | ch -= '0'; | 475 | ch -= '0'; |