From: Badlop Date: Thu, 19 Jan 2012 12:08:11 +0000 (+0100) Subject: http_bind webserver TLS fail on Chrome (thanks to Adam Langley)(EJAB-1530) X-Git-Tag: v2.1.11~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95928a7cd46e4c45ab26d6779768345595181cf9;p=ejabberd http_bind webserver TLS fail on Chrome (thanks to Adam Langley)(EJAB-1530) --- diff --git a/src/tls/tls_drv.c b/src/tls/tls_drv.c index c4210055a..9311d4f6d 100644 --- a/src/tls/tls_drv.c +++ b/src/tls/tls_drv.c @@ -430,7 +430,8 @@ static ErlDrvSSizeT tls_drv_control(ErlDrvData handle, if (res <= 0) die_unless(SSL_get_error(d->ssl, res) == SSL_ERROR_WANT_READ, "SSL_do_handshake failed"); - } else { + } + if (SSL_is_init_finished(d->ssl)) { size = BUF_SIZE + 1; rlen = 1; b = driver_alloc_binary(size);