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)
This commit is contained in:
parent
88be429f2e
commit
8fd19b20be
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue