Skip to content

Commit 643329e

Browse files
committed
Land rapid7#3757, postgres login scanner nil public fix
2 parents 9a7d1b2 + 0d9fbe7 commit 643329e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/concerns/metasploit/credential/core/to_credential.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ module Metasploit::Credential::Core::ToCredential
99

1010
def to_credential
1111
Metasploit::Framework::Credential.new(
12-
public: public.try(:username),
13-
private: private.try(:data),
12+
public: public.try(:username) || '',
13+
private: private.try(:data) || '',
1414
private_type: private.try(:type).try(:demodulize).try(:underscore).try(:to_sym),
1515
realm: realm.try(:value),
1616
realm_key: realm.try(:key),

0 commit comments

Comments
 (0)