diff options
Diffstat (limited to 'src/lib/libssl/ssl_ciph.c')
| -rw-r--r-- | src/lib/libssl/ssl_ciph.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 77d8a3c79f..4ae3312a1a 100644 --- a/src/lib/libssl/ssl_ciph.c +++ b/src/lib/libssl/ssl_ciph.c | |||
| @@ -559,7 +559,7 @@ ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, | |||
| 559 | break; | 559 | break; |
| 560 | } | 560 | } |
| 561 | 561 | ||
| 562 | if ((i < 0) || (i > SSL_ENC_NUM_IDX)) | 562 | if ((i < 0) || (i >= SSL_ENC_NUM_IDX)) |
| 563 | *enc = NULL; | 563 | *enc = NULL; |
| 564 | else { | 564 | else { |
| 565 | if (i == SSL_ENC_NULL_IDX) | 565 | if (i == SSL_ENC_NULL_IDX) |
| @@ -591,7 +591,7 @@ ssl_cipher_get_evp(const SSL_SESSION *s, const EVP_CIPHER **enc, | |||
| 591 | i = -1; | 591 | i = -1; |
| 592 | break; | 592 | break; |
| 593 | } | 593 | } |
| 594 | if ((i < 0) || (i > SSL_MD_NUM_IDX)) { | 594 | if ((i < 0) || (i >= SSL_MD_NUM_IDX)) { |
| 595 | *md = NULL; | 595 | *md = NULL; |
| 596 | 596 | ||
| 597 | if (mac_pkey_type != NULL) | 597 | if (mac_pkey_type != NULL) |
