From 3f0c310b80626f6286022f30a7a280b3306587ca Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Thu, 15 Dec 2022 07:07:49 +0000 Subject: [PATCH] QUIC Front-End I/O API: Determine read completion correctly Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/19703) --- ssl/quic/quic_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index d94dacfe7e1..19d100f50b7 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -790,7 +790,7 @@ static int quic_write_again(void *arg) args->len -= actual_written; args->total_written += actual_written; - if (actual_written == 0) + if (args->len == 0) /* Written everything, done. */ return 1; -- 2.47.2