From 34dc03352a3630d29da9d210bd72faafe2dba861 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Fri, 29 Mar 2024 14:54:33 +0000 Subject: [PATCH] Minor fix Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23995) --- ssl/quic/quic_impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index c1dcc1a661d..fdb5b3548bc 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -2584,8 +2584,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; } -- 2.47.2