diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_utl.c')
-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'; |