Skip to content

Commit bdc9f68

Browse files
committed
Check True in error response for mspc
Without this check, it causes Pro to behave different (malfunction)
1 parent 49ae173 commit bdc9f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/rpc/v10/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def call(meth, *args)
7272
if res && [200, 401, 403, 500].include?(res.code)
7373
resp = MessagePack.unpack(res.body)
7474

75-
if resp && resp.kind_of?(::Hash) && resp['error']
75+
if resp && resp.kind_of?(::Hash) && resp['error'] == true
7676
raise Msf::RPC::ServerException.new(resp['error_code'] || res.code, resp['error_message'] || resp['error_string'], resp['error_class'], resp['error_backtrace'])
7777
end
7878

0 commit comments

Comments
 (0)