From 5d14851aaaf1980d1b86c28b3966698335499bdb Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 11 Nov 2024 21:06:59 +0000 Subject: [PATCH] Fix error in ldap-brute: 'no string output' --- scripts/ldap-brute.nse | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/ldap-brute.nse b/scripts/ldap-brute.nse index b239525dd..f9d686460 100644 --- a/scripts/ldap-brute.nse +++ b/scripts/ldap-brute.nse @@ -306,10 +306,9 @@ action = function( host, port ) end end + output = stdnse.format_output(true, valid_accounts) if err then - output = stdnse.format_output(true, valid_accounts ) .. stdnse.format_output(true, err) or stdnse.format_output(true, err) - else - output = stdnse.format_output(true, valid_accounts) or "" + output = (output or "") .. stdnse.format_output(true, err) end return output