diff options
author | Pauli <paul.dale@oracle.com> | 2017-08-21 07:36:23 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-08-22 07:44:24 +1000 |
commit | 603e5170161bd71d2341c34fdcca24d191964c0d (patch) | |
tree | 0e34910d912476b54961c62e03d6ec7401ae4d57 /ssl | |
parent | c3154d784ebaeb5b0435e21f305a2b6c0f90bd92 (diff) |
Fix ctype arguments.
Cast arguments to the various ctype functions to unsigned char to match their
documentation.
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4203)
(cherry picked from commit 00dfbaad88a69ed8294d6039bf5f7d722f72bf39)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_ciph.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c index dad2ec176d..da6e298435 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -1036,7 +1036,8 @@ static int ssl_cipher_process_rulestr(const char *rule_str, ((ch >= 'a') && (ch <= 'z')) || (ch == '-') || (ch == '.') || (ch == '=')) #else - while (isalnum(ch) || (ch == '-') || (ch == '.') || (ch == '=')) + while (isalnum((unsigned char)ch) || (ch == '-') || (ch == '.') + || (ch == '=')) #endif { ch = *(++l); |