diff options
author | Matt Caswell <matt@openssl.org> | 2022-12-01 15:16:02 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-02-22 06:33:24 +0100 |
commit | 3f968ecf479ed6ab8a2b25bd1077300baf2287a7 (patch) | |
tree | 792969049c9d787fb363d5831221e0490aff986c /crypto | |
parent | Implement the QUIC Fault injector support for plaintext packets (diff) | |
download | openssl-3f968ecf479ed6ab8a2b25bd1077300baf2287a7.tar.xz openssl-3f968ecf479ed6ab8a2b25bd1077300baf2287a7.zip |
Don't raise an error on retryable read in a BIO_s_dgram_pair()
This results in spurious errors appearing on the queue in normal
operation, e.g. calling SSL_tick() with a QUIC connection will succeed,
but an error will end up on the queue anyway.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20030)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bio/bss_dgram_pair.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/bio/bss_dgram_pair.c b/crypto/bio/bss_dgram_pair.c index 3685d51f55..b80fa62e48 100644 --- a/crypto/bio/bss_dgram_pair.c +++ b/crypto/bio/bss_dgram_pair.c @@ -1066,12 +1066,10 @@ static int dgram_pair_recvmmsg(BIO *bio, BIO_MSG *msg, m->local, m->peer, 1); if (l < 0) { *num_processed = i; - if (i > 0) { + if (i > 0) ret = 1; - } else { - ERR_raise(ERR_LIB_BIO, -l); + else ret = 0; - } goto out; } |