1
0
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:
dmiller
2017-06-01 17:45:07 +00:00
parent ba992765b3
commit 8d04c3b850

View File

@@ -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