summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2023-10-13 12:19:40 +0100
committerMatt Caswell <matt@openssl.org>2023-10-25 09:40:48 +0100
commit1a91fda1839bc745e8359f82d19a5ef44ca36f7e (patch)
tree8b8d58e1b17341a65d5b7217e6ffe3fbb2748069 /crypto
parent8c110311fd5e7f04e2c152b17d44acfd4a279ea6 (diff)
Make s_client -quic -debug work
The callback that makes -debug print the data sent/received needed extending for the new QUIC callback codes. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22480)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/bio_lib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c
index dc7f1b7b9e..e4f72bcd1b 100644
--- a/crypto/bio/bio_lib.c
+++ b/crypto/bio/bio_lib.c
@@ -418,8 +418,8 @@ int BIO_sendmmsg(BIO *b, BIO_MSG *msg,
args.msgs_processed = msgs_processed;
ret = (size_t)bio_call_callback(b, BIO_CB_SENDMMSG, (void *)&args,
- 0, 0, 0, 0, NULL);
- if (ret == 0)
+ 0, 0, 0, 1, NULL);
+ if (ret <= 0)
return 0;
}
@@ -433,7 +433,7 @@ int BIO_sendmmsg(BIO *b, BIO_MSG *msg,
if (HAS_CALLBACK(b))
ret = (size_t)bio_call_callback(b, BIO_CB_SENDMMSG | BIO_CB_RETURN,
- (void *)&args, ret, 0, 0, 0, NULL);
+ (void *)&args, ret, 0, 0, ret, NULL);
return ret;
}
@@ -465,8 +465,8 @@ int BIO_recvmmsg(BIO *b, BIO_MSG *msg,
args.msgs_processed = msgs_processed;
ret = bio_call_callback(b, BIO_CB_RECVMMSG, (void *)&args,
- 0, 0, 0, 0, NULL);
- if (ret == 0)
+ 0, 0, 0, 1, NULL);
+ if (ret <= 0)
return 0;
}
@@ -480,7 +480,7 @@ int BIO_recvmmsg(BIO *b, BIO_MSG *msg,
if (HAS_CALLBACK(b))
ret = (size_t)bio_call_callback(b, BIO_CB_RECVMMSG | BIO_CB_RETURN,
- (void *)&args, ret, 0, 0, 0, NULL);
+ (void *)&args, ret, 0, 0, ret, NULL);
return ret;
}