Retry callback only after ClientHello received.
authorPiotr Sikora <piotr@cloudflare.com>
Tue, 18 Mar 2014 23:55:32 +0000 (23:55 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 18 Mar 2014 23:55:32 +0000 (23:55 +0000)
ssl/s3_srvr.c

index 3f43dcc4be4fef96c3322e0ba50fe2e104827836..a787c6d32d8c004abe6ca68406e76c082aa9fb0b 100644 (file)
@@ -949,7 +949,7 @@ int ssl3_get_client_hello(SSL *s)
 #endif
        STACK_OF(SSL_CIPHER) *ciphers=NULL;
 
-       if (s->state == SSL3_ST_SR_CLNT_HELLO_C)
+       if (s->state == SSL3_ST_SR_CLNT_HELLO_C && !s->first_packet)
                goto retry_cert;
 
        /* We do this so that we will respond with our native type.