Ensure the ticket expected flag is reset when a stateless resumption is
authorDr. Stephen Henson <steve@openssl.org>
Thu, 18 Oct 2007 11:39:11 +0000 (11:39 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 18 Oct 2007 11:39:11 +0000 (11:39 +0000)
successful.

ssl/t1_lib.c

index 1bd67b40b16989fa69f28e3d5652c78280d7469b..8ff1734dabab7fb87129016d948f721faafb0c0f 100644 (file)
@@ -847,6 +847,7 @@ static int tls_decrypt_ticket(SSL *s, const unsigned char *etick, int eticklen,
                        memcpy(sess->session_id, sess_id, sesslen);
                sess->session_id_length = sesslen;
                *psess = sess;
+               s->tlsext_ticket_expected = 0;
                return 1;
                }
        /* If session decrypt failure indicate a cache miss and set state to