We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82bdce6 commit becc05bCopy full SHA for becc05b
lib/msf/core/auxiliary/mqtt.rb
@@ -26,9 +26,10 @@ def initialize(info = {})
26
27
def setup
28
fail_with(Failure::BadConfig, 'READ_TIMEOUT must be > 0') if read_timeout <= 0
29
+
30
client_id_arg = datastore['CLIENT_ID']
- if client_id_arg
31
- fail_with(Failure::BadConfig, 'CLIENT_ID must be a non-empty string') if client_id_arg.blank?
+ if client_id_arg && client_id_arg.blank?
32
+ fail_with(Failure::BadConfig, 'CLIENT_ID must be a non-empty string')
33
end
34
35
0 commit comments