summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssl/quic/quic_impl.c')
-rw-r--r--ssl/quic/quic_impl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c
index b8530257e9..a4e4beb153 100644
--- a/ssl/quic/quic_impl.c
+++ b/ssl/quic/quic_impl.c
@@ -2582,8 +2582,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;
}