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