Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2012-01-19 16:08:11 +0400
committerBadlop <badlop@process-one.net>2012-01-19 16:17:05 +0400
commit944c15a969a655707f3c7df8efacba2282a7e62d (patch)
tree80512e466f8755cdd9b4ab82571b42db9f83a692 /src
parent3573fbcd21b5ff54028b3bd2827a70c5e1218ca8 (diff)
http_bind webserver TLS fail on Chrome (thanks to Adam Langley)(EJAB-1530)
Diffstat (limited to 'src')
-rw-r--r--src/tls/tls_drv.c3
1 files changed, 2 insertions, 1 deletions
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);