]> granicus.if.org Git - ejabberd/commitdiff
http_bind webserver TLS fail on Chrome (thanks to Adam Langley)(EJAB-1530)
authorBadlop <badlop@process-one.net>
Thu, 19 Jan 2012 12:08:11 +0000 (13:08 +0100)
committerBadlop <badlop@process-one.net>
Thu, 19 Jan 2012 12:21:25 +0000 (13:21 +0100)
src/tls/tls_drv.c

index c4210055a81670977638c5452ed1cc93532369a6..9311d4f6d6dd323c4ff51903da33d8b07c7fead5 100644 (file)
@@ -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);