From 5fda7abc6687fa402a156465613da088646a97d0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 9 Jan 2024 10:11:05 +0000 Subject: Fix sbearssl_run exit conditions AGAIN Signed-off-by: Laurent Bercot --- src/sbearssl/sbearssl_run.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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)) -- cgit v1.2.3