mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 22:19:03 +00:00
Avoid a crash if ldap decode fails in sslcert. See #888
This commit is contained in:
@@ -336,7 +336,7 @@ StartTLS = {
|
||||
if resultCode ~= 0 then
|
||||
starttls_supported(host, port, false)
|
||||
stdnse.debug1(string.format(
|
||||
"STARTTLS failed (LDAP error code is: %d)", resultCode))
|
||||
"STARTTLS failed (LDAP error code is: %s)", tonumber(resultCode) or "not a number"))
|
||||
return false, "STARTTLS failed"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user