diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2017-02-10 04:22:18 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2017-02-10 20:08:35 +0000 |
commit | 8fd19b20beca97a2ef804058f099cf54f12f7614 (patch) | |
tree | 88bf4e68a7d10ff94bc4af7ba7ac70bd3d2e71d3 /ssl | |
parent | 88be429f2ed04f0acc71f7fd5456174c274f2f76 (diff) |
Check index >= 0 as 0 is a valid index.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2587)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/t1_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 43340d4d49..d6a841a82f 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1601,7 +1601,7 @@ int tls1_process_sigalgs(SSL *s) if (SSL_IS_TLS13(s) && sigptr->sig == EVP_PKEY_RSA) continue; idx = tls12_get_pkey_idx(sigptr->sig); - if (idx > 0 && pmd[idx] == NULL) { + if (idx >= 0 && pmd[idx] == NULL) { md = ssl_md(sigptr->hash_idx); pmd[idx] = md; pvalid[idx] = CERT_PKEY_EXPLICIT_SIGN; |