]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC Front-End I/O API: Determine read completion correctly
authorHugo Landau <hlandau@openssl.org>
Thu, 15 Dec 2022 07:07:49 +0000 (07:07 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 13 Jan 2023 13:20:22 +0000 (13:20 +0000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19703)

ssl/quic/quic_impl.c

index d94dacfe7e17044eb7c5877825ebb59ab5cbc4d0..19d100f50b7099f3e1c66a9216ed47501b5110cf 100644 (file)
@@ -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;