mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Avoid a crash if ldap decode fails in sslcert. See #888
This commit is contained in:
parent
ba992765b3
commit
8d04c3b850
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue