1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

Don't overwrite source_id just because we don't have one.

git-svn-id: file:///home/svn/framework3/trunk@10067 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Tod Beardsley 2010-08-19 23:19:34 +00:00
parent 6c38930db6
commit d0ea2737c5

View File

@ -639,8 +639,8 @@ class DBManager
# Annotate the credential
cred.ptype = ptype
cred.source_id = source_id
cred.source_type = source_type
cred.source_id = source_id if source_id
cred.source_type = source_type if source_type
cred.active = active
# Safe proof (lazy way) -- doesn't chop expanded