When calling BIO-recvmmsg() and using a dgram pair we were failing to
raise an error in the case that a problem occurs. This means that the
reason behind a failure cannot be detected and all problems are treated
as fatal even if they may not be.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20030)
m->local, m->peer, 1);
if (l < 0) {
*num_processed = i;
- if (i > 0)
+ if (i > 0) {
ret = 1;
- else
+ } else {
+ ERR_raise(ERR_LIB_BIO, -l);
ret = 0;
+ }
goto out;
}