Retry callback only after ClientHello received.
[openssl.git] / ssl / s3_srvr.c
index bea6e2750bd3bebbdd7260e9f8dbc073e1fd2632..8d0e54315f680dfa913356744ccd902a8d20a4f0 100644 (file)
@@ -950,7 +950,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.