]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Minor fix
authorHugo Landau <hlandau@openssl.org>
Fri, 29 Mar 2024 14:54:33 +0000 (14:54 +0000)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:32 +0000 (11:27 -0500)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23995)

ssl/quic/quic_impl.c

index 6fcc1713257a6d0cb3b2a195ef55930c73990ce1..c7ed317a64cba28351aaee63e205d018362ae6da 100644 (file)
@@ -2595,8 +2595,8 @@ static int quic_write_nonblocking_epw(QCTX *ctx, const void *buf, size_t len,
                     qctx_should_autotick(ctx));
 
     if (*written == 0)
-        /* SSL_write_ex returns 0 if it didn't read anything. */
-        return QUIC_RAISE_NORMAL_ERROR(ctx, SSL_ERROR_WANT_READ);
+        /* SSL_write_ex returns 0 if it didn't write anything. */
+        return QUIC_RAISE_NORMAL_ERROR(ctx, SSL_ERROR_WANT_WRITE);
 
     return 1;
 }