]> 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)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Wed, 11 Sep 2024 08:35:22 +0000 (18:35 +1000)
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 c1dcc1a661d7c0bc11c25cf57fe21876c34b5b26..fdb5b3548bce286dc4f62aa65137699c3f5cfd35 100644 (file)
@@ -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;
 }