summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2024-01-09 10:11:05 +0000
committerLaurent Bercot <ska@appnovation.com>2024-01-09 10:11:05 +0000
commit5fda7abc6687fa402a156465613da088646a97d0 (patch)
treeee83df07e847346bcf0e6013efa0c5ef080dadba
parent9abf2cba718f765c0fc856267f1140723ee003f1 (diff)
downloads6-networking-5fda7abc6687fa402a156465613da088646a97d0.tar.xz
Fix sbearssl_run exit conditions AGAIN
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-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))