From 465f94fafba486d966757edcfcf274b193a06a46 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Tue, 20 May 2025 11:01:08 +0200 Subject: [PATCH] detect/tls: fix -Wshorten-64-to-32 warnings Ticket: #6186 --- src/detect-tls-alpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-tls-alpn.c b/src/detect-tls-alpn.c index 3a406a824a..e2f5c6d7f3 100644 --- a/src/detect-tls-alpn.c +++ b/src/detect-tls-alpn.c @@ -72,7 +72,7 @@ static bool TlsAlpnGetData(DetectEngineThreadCtx *det_ctx, const void *txv, cons if (SCTLSHandshakeGetALPN(connp->hs, idx, &d)) { *buf = d.data; - *buf_len = d.len; + *buf_len = (uint32_t)d.len; return true; } else { return false;