!a && !a->b is clearly wrong! Changed to !a || !a->b (Coverity ID 145).
[openssl.git] / ssl / s23_clnt.c
index f90e107c9f5a4afca9b2786a2426f7b60a293aa4..cc6c527f19fdcc9507e06682fc0d9dc2cfaffd7e 100644 (file)
@@ -276,7 +276,7 @@ static int ssl23_client_hello(SSL *s)
                {
                version = SSL2_VERSION;
                }
-
+#ifndef OPENSSL_NO_TLSEXT
        if (version != SSL2_VERSION)
                {
                /* have to disable SSL 2.0 compatibility if we need TLS extensions */
@@ -291,6 +291,7 @@ static int ssl23_client_hello(SSL *s)
                        ssl2_compat = 0;
 #endif
                }
+#endif
 
        buf=(unsigned char *)s->init_buf->data;
        if (s->state == SSL23_ST_CW_CLNT_HELLO_A)