Skip to content

Commit

Permalink
Merge pull request AlessandroZ#292 from KiUserExceptionDispatcher/pat…
Browse files Browse the repository at this point in the history
…ch-2

decrypt_with_key (see traceback)
  • Loading branch information
AlessandroZ authored Sep 28, 2018
2 parents 9510835 + 0af5f10 commit 22197ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Windows/lazagne/config/DPAPI/masterkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def decrypt_with_key(self, pwdhash):
This function also extracts the HMAC part of the decrypted stuff and compare it with the computed one.
Note that, once successfully decrypted, the masterkey will not be decrypted anymore; this function will simply return.
"""
if self.decrypted:
if self.decrypted or not pwdhash:
return

# Compute encryption key
Expand Down

0 comments on commit 22197ed

Please sign in to comment.