From: Dr. Stephen Henson Date: Wed, 9 Dec 2009 15:03:44 +0000 (+0000) Subject: Check s3 is not NULL X-Git-Tag: OpenSSL-fips-2_0-rc1~1400 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a8640f0a7df29963f2e490a110d50c42f96c8e6a;p=oweals%2Fopenssl.git Check s3 is not NULL --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index c9aa604356..6e29f9a4c6 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1394,8 +1394,8 @@ STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s,unsigned char *p,int num, const SSL_CIPHER *c; STACK_OF(SSL_CIPHER) *sk; int i,n; - - s->s3->send_connection_binding = 0; + if (s->s3) + s->s3->send_connection_binding = 0; n=ssl_put_cipher_by_char(s,NULL,NULL); if ((num%n) != 0) @@ -1414,7 +1414,7 @@ STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s,unsigned char *p,int num, for (i=0; is3 && (n != 3 || !p[0]) && (p[n-2] == ((SSL3_CK_MCSV >> 8) & 0xff)) && (p[n-1] == (SSL3_CK_MCSV & 0xff))) {