From 2c3dae6af574b9784f2f9bec499c5c857d6f586d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 4 Aug 2025 13:44:01 +0200 Subject: [PATCH] tls: Make tstream_tls_params_quic_enabled a bit easier to read YMMV Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- source4/lib/tls/tls_tstream.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source4/lib/tls/tls_tstream.c b/source4/lib/tls/tls_tstream.c index 09f66a03444..6908491adb4 100644 --- a/source4/lib/tls/tls_tstream.c +++ b/source4/lib/tls/tls_tstream.c @@ -911,13 +911,17 @@ bool tstream_tls_params_enabled(struct tstream_tls_params *tls_params) bool tstream_tls_params_quic_enabled(struct tstream_tls_params *tls_params) { - bool quic = false; #ifdef HAVE_LIBQUIC + struct tstream_tls_params_internal *tlsp = tls_params->internal; - quic = tlsp->quic; + return tlsp->quic; + +#else /* HAVE_LIBQUIC */ + + return false; + #endif /* HAVE_LIBQUIC */ - return quic; } enum tls_verify_peer_state tstream_tls_params_verify_peer( -- 2.47.3