Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/crypto/dist/openssl/ssl Pull up revision 1.6 via patch ...



details:   https://anonhg.NetBSD.org/src/rev/1de58685f3e9
branches:  netbsd-1-6
changeset: 530764:1de58685f3e9
user:      tron <tron%NetBSD.org@localhost>
date:      Thu Oct 02 09:07:55 2003 +0000

description:
Pull up revision 1.6 via patch (requested by itojun in ticket #1495):
from openbsd:
Correct some off-by-ones.  They currently don't matter, but this
is for future safety and consistency.
OK krw@, markus@

diffstat:

 crypto/dist/openssl/ssl/ssl_ciph.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 7b966f7c3444 -r 1de58685f3e9 crypto/dist/openssl/ssl/ssl_ciph.c
--- a/crypto/dist/openssl/ssl/ssl_ciph.c        Thu Oct 02 09:01:20 2003 +0000
+++ b/crypto/dist/openssl/ssl/ssl_ciph.c        Thu Oct 02 09:07:55 2003 +0000
@@ -71,7 +71,7 @@
 #define SSL_ENC_NUM_IDX                7
 
 static const EVP_CIPHER *ssl_cipher_methods[SSL_ENC_NUM_IDX]={
-       NULL,NULL,NULL,NULL,NULL,NULL,
+       NULL,NULL,NULL,NULL,NULL,NULL,NULL
        };
 
 static STACK_OF(SSL_COMP) *ssl_comp_methods=NULL;
@@ -231,7 +231,7 @@
                break;
                }
 
-       if ((i < 0) || (i > SSL_ENC_NUM_IDX))
+       if ((i < 0) || (i >= SSL_ENC_NUM_IDX))
                *enc=NULL;
        else
                {
@@ -253,7 +253,7 @@
                i= -1;
                break;
                }
-       if ((i < 0) || (i > SSL_MD_NUM_IDX))
+       if ((i < 0) || (i >= SSL_MD_NUM_IDX))
                *md=NULL;
        else
                *md=ssl_digest_methods[i];



Home | Main Index | Thread Index | Old Index