1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 12:59:02 +00:00

o [NSE] Fixed bug in the http library that would fail parsing authentication

headers if no parameters were present. [Patrik]
This commit is contained in:
patrik
2011-12-19 18:35:32 +00:00
parent 4e3c3f757e
commit f93b31373a
2 changed files with 5 additions and 1 deletions

View File

@@ -1608,7 +1608,8 @@ local function read_auth_challenge(s, pos)
tmp_pos = pos
tmp_pos, name = read_token(s, tmp_pos)
if not name then
return nil
pos = skip_space(s, pos + 1)
return pos, { scheme = scheme, params = nil }
end
tmp_pos = skip_space(s, tmp_pos)
if string.sub(s, tmp_pos, tmp_pos) ~= "=" then