Skip to content

Commit

Permalink
fixup! QUIC err handling: Properly report network errors
Browse files Browse the repository at this point in the history
  • Loading branch information
t8m committed May 31, 2023
1 parent 20cb945 commit 0bba401
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 @@ -1552,9 +1552,9 @@ int ossl_quic_get_error(const SSL *s, int i)
if (!expect_quic(s, &ctx))
return 0;

quic_lock(&ctx.qc);
quic_lock(ctx.qc);
net_error = ossl_quic_channel_net_error(ctx.qc->ch);
quic_unlock(&ctx.qc);
quic_unlock(ctx.qc);

if (net_error)
return SSL_ERROR_SYSCALL;
Expand Down

0 comments on commit 0bba401

Please sign in to comment.