]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/tls: fix -Wshorten-64-to-32 warnings
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 20 May 2025 09:01:08 +0000 (11:01 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 21 May 2025 07:37:21 +0000 (09:37 +0200)
Ticket: #6186

src/detect-tls-alpn.c

index 3a406a824a6d0803d26409ffe1bb103f283b3c04..e2f5c6d7f357aa2ba71ddbed8422e50e0d3f957e 100644 (file)
@@ -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;