Signed-off-by: Andy Green <andy.green@linaro.org>
if (n >= 0)
return n;
- n = SSL_get_error(wsi->ssl, len);
+ n = SSL_get_error(wsi->ssl, n);
if (n == SSL_ERROR_WANT_READ || n == SSL_ERROR_WANT_WRITE)
return LWS_SSL_CAPABLE_MORE_SERVICE;
if (n >= 0)
return n;
- n = SSL_get_error(wsi->ssl, len);
+ n = SSL_get_error(wsi->ssl, n);
if (n == SSL_ERROR_WANT_READ || n == SSL_ERROR_WANT_WRITE) {
if (n == SSL_ERROR_WANT_WRITE)
lws_set_blocking_send(wsi);