summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sbearssl/sbearssl_run.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sbearssl/sbearssl_run.c b/src/sbearssl/sbearssl_run.c
index af8b10e..9e98884 100644
--- a/src/sbearssl/sbearssl_run.c
+++ b/src/sbearssl/sbearssl_run.c
@@ -87,6 +87,8 @@ void sbearssl_run (br_ssl_engine_context *ctx, int *fd, tain const *tto, uint32_
}
else y[3] = 4 ;
+ if (!j || (j == 1 && !x[0].events) || (j == 2 && !x[0].events && !x[1].events)) break ;
+
/* Wait for events */
switch (iopause_g(x, j, &deadline))