Skip to content

Commit

Permalink
fix vers_bin nil value
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Dec 6, 2024
1 parent a3205ad commit beb5a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ja4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beb5a6d

Please sign in to comment.