oops!
authorDr. Stephen Henson <steve@openssl.org>
Wed, 28 Oct 2009 19:50:59 +0000 (19:50 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 28 Oct 2009 19:50:59 +0000 (19:50 +0000)
ssl/s3_clnt.c

index 9322f62..a62ffd5 100644 (file)
@@ -618,15 +618,9 @@ int ssl3_client_hello(SSL *s)
        buf=(unsigned char *)s->init_buf->data;
        if (s->state == SSL3_ST_CW_CLNT_HELLO_A)
                {
-               SSL_SESSION *sess = s->session;
-               if ((sess == NULL) ||
-                       (sess->ssl_version != s->version) ||
-#ifdef OPENSSL_NO_TLSEXT
-                       !sess->session_id_length ||
-#else
-                       (!sess->session_id_length && !sess->tlsext_tick) ||
-#endif
-                       (sess->not_resumable))
+               if ((s->session == NULL) ||
+                       (s->session->ssl_version != s->version) ||
+                       (s->session->not_resumable))
                        {
                        if (!ssl_get_new_session(s,0))
                                goto err;