From cde0d861c6eb239cc74a95ea46a008199444edb9 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 5 Jul 2026 13:27:26 +0200 Subject: [PATCH] Fix incorrect use of | instead of ||. Harmless, fortunately. --- include/struct.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/struct.h b/include/struct.h index e9878801c..273b134e7 100644 --- a/include/struct.h +++ b/include/struct.h @@ -409,7 +409,7 @@ typedef enum ClientStatus { #define IsTLSAcceptHandshake(x) ((x)->status == CLIENT_STATUS_TLS_ACCEPT_HANDSHAKE) /**< Currently doing a TLS handshake - incoming */ #define IsTLSConnectHandshake(x) ((x)->status == CLIENT_STATUS_TLS_CONNECT_HANDSHAKE) /**< Currently doing a TLS handshake - outgoing */ /** Currently doing a TLS handshake (incoming/outgoing/STARTTLS) */ -#define IsTLSHandshake(x) (IsTLSAcceptHandshake(x) || IsTLSConnectHandshake(x) | IsStartTLSHandshake(x)) +#define IsTLSHandshake(x) (IsTLSAcceptHandshake(x) || IsTLSConnectHandshake(x) || IsStartTLSHandshake(x)) #define SetStartTLSHandshake(x) ((x)->status = CLIENT_STATUS_TLS_STARTTLS_HANDSHAKE) #define SetTLSAcceptHandshake(x) ((x)->status = CLIENT_STATUS_TLS_ACCEPT_HANDSHAKE)