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:35:08 +1000 |
commit | 00dfbaad88a69ed8294d6039bf5f7d722f72bf39 (patch) | |
tree | 55eed0684ae00018ea84a389530563fea46d4b7e /ssl | |
parent | 0d68367a1279a369146661f4857816b2044116b4 (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)
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 914d0d8f4a..60e1308d54 100644 --- a/ssl/ssl_ciph.c +++ b/ssl/ssl_ciph.c @@ -1001,7 +1001,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); |