summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2022-04-26 09:42:01 +0200
committerTomas Mraz <tomas@openssl.org>2022-05-16 10:45:48 +0200
commit524bac570702a79366b85ff1f66e07d3e002370c (patch)
tree19012c9e964a5594bf8bed6789b3062493bf6619 /include
parent6646e015a50e5455117c22a27032011689db710f (diff)
downloadopenssl-new-524bac570702a79366b85ff1f66e07d3e002370c.tar.gz
Fix BIO_get_ktls_send/recv to return 0 or 1 only
Fixes #18176 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/18178)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/bio.h.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/bio.h.in b/include/openssl/bio.h.in
index 4b11c77779..46697ce3d7 100644
--- a/include/openssl/bio.h.in
+++ b/include/openssl/bio.h.in
@@ -174,9 +174,9 @@ extern "C" {
# ifndef OPENSSL_NO_KTLS
# define BIO_get_ktls_send(b) \
- BIO_ctrl(b, BIO_CTRL_GET_KTLS_SEND, 0, NULL)
+ (BIO_ctrl(b, BIO_CTRL_GET_KTLS_SEND, 0, NULL) > 0)
# define BIO_get_ktls_recv(b) \
- BIO_ctrl(b, BIO_CTRL_GET_KTLS_RECV, 0, NULL)
+ (BIO_ctrl(b, BIO_CTRL_GET_KTLS_RECV, 0, NULL) > 0)
# else
# define BIO_get_ktls_send(b) (0)
# define BIO_get_ktls_recv(b) (0)