diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c index 08aa1f6f1..041fad6ed 100644 --- a/src/tls/tls_drv.c +++ b/src/tls/tls_drv.c @@ -369,9 +369,10 @@ static int tls_drv_control(ErlDrvData handle, SSL_set_bio(d->ssl, d->bio_read, d->bio_write); - if (command == SET_CERTIFICATE_FILE_ACCEPT) + if (command == SET_CERTIFICATE_FILE_ACCEPT) { + SSL_set_options(d->ssl, SSL_OP_NO_TICKET); SSL_set_accept_state(d->ssl); - else { + } else { SSL_set_options(d->ssl, SSL_OP_NO_SSLv2|SSL_OP_NO_TICKET); SSL_set_connect_state(d->ssl); }