Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #23995)
  • Loading branch information
hlandau committed Apr 19, 2024
1 parent 4d6ca36 commit 366c53c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssl/quic/quic_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 366c53c

Please sign in to comment.