From beb5a6d366a9cff3d9b3d97ca2e7ce1d1b69238b Mon Sep 17 00:00:00 2001 From: Rath Pascal Date: Fri, 6 Dec 2024 18:19:38 +0100 Subject: [PATCH] fix vers_bin nil value --- ja4.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ja4.lua b/ja4.lua index bad2875..8602fcd 100644 --- a/ja4.lua +++ b/ja4.lua @@ -66,7 +66,7 @@ local function tls_version(txn) -- get highest value from supported_versions extension local vers_bin = txn.f:ssl_fc_supported_versions_bin(1) - if (#vers_bin >= 2) then + if (vers_bin and #vers_bin >= 2) then local max_vers_bin = 0 for i = 1, #vers_bin, 2 do