diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-01-09 10:11:05 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-01-09 10:11:05 +0000 |
commit | 5fda7abc6687fa402a156465613da088646a97d0 (patch) | |
tree | ee83df07e847346bcf0e6013efa0c5ef080dadba /src/sbearssl | |
parent | 9abf2cba718f765c0fc856267f1140723ee003f1 (diff) | |
download | s6-networking-5fda7abc6687fa402a156465613da088646a97d0.tar.xz |
Fix sbearssl_run exit conditions AGAIN
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/sbearssl')
-rw-r--r-- | src/sbearssl/sbearssl_run.c | 2 |
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)) |