From 843315b8f573c14bf4e4f2e705fd94de5f220149 Mon Sep 17 00:00:00 2001 From: nnposter Date: Wed, 23 Sep 2026 21:38:54 +0000 Subject: [PATCH] Use the correct test order. Close #3513 --- nselib/sslv2.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/sslv2.lua b/nselib/sslv2.lua index 31190bc48..6d9053043 100644 --- a/nselib/sslv2.lua +++ b/nselib/sslv2.lua @@ -154,7 +154,7 @@ end function record_read(buffer, i) local i, h = read_header(buffer, i) - if #buffer - i + 1 < h.record_length or not h then + if not h or #buffer - i + 1 < h.record_length then return i, nil end