diff --git a/nselib/data/http-default-accounts-fingerprints.lua b/nselib/data/http-default-accounts-fingerprints.lua index 3b2c1fc14..16f92cbeb 100644 --- a/nselib/data/http-default-accounts-fingerprints.lua +++ b/nselib/data/http-default-accounts-fingerprints.lua @@ -259,7 +259,7 @@ table.insert(fingerprints, { -- harvest all hidden fields from the login form local resp1 = http_get_simple(host, port, lurl) if resp1.status ~= 200 then return false end - local html = resp1.body and resp1.body:match('(.-)') + local html = (resp1.body or ""):match('(.-)') if not html then return false end local form = {} for n, v in html:gmatch('true', 1, true) + and (resp.body or ""):find('true', 1, true) end })