From: Hugo Landau Date: Fri, 29 Mar 2024 14:54:33 +0000 (+0000) Subject: Minor fix X-Git-Tag: openssl-3.5.0-alpha1~419 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=458018f3e670155ea1259ebb1fc7a27c11cf0147;p=thirdparty%2Fopenssl.git Minor fix Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23995) --- diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 6fcc1713257..c7ed317a64c 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -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; }