Skip to content

Commit 30c325c

Browse files
committed
Make better json check
1 parent 564f9bc commit 30c325c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/gather/ibm_sametime_enumerate_users.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def run
125125
elsif res.code != 200
126126
print_error("#{peer} - Unexpected response from server (Response code: #{res.code})")
127127
return
128-
elsif JSON.parse(res.body).blank?
129-
# empty JSON element - valid response for check
128+
elsif JSON.parse(res.body)
129+
# valid JSON response - valid response for check
130130
print_good("#{peer} - Response received, continuing to enumeration phase")
131131
end
132132
rescue JSON::ParserError,

0 commit comments

Comments
 (0)