Retry callback only after ClientHello received.

(cherry picked from commit f04665a653)
This commit is contained in:
Piotr Sikora 2014-03-18 23:55:32 +00:00 committed by Dr. Stephen Henson
parent 8b0336c810
commit aa10982c49

View 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.