Another patch for #2827

This commit is contained in:
Miroslav Stampar
2017-12-14 15:45:14 +01:00
parent f2f7994ac6
commit 574074e171
3 changed files with 4 additions and 4 deletions

View File

@@ -577,7 +577,7 @@ def storeHashesToFile(attack_dict):
kb.storeHashesChoice = readInput(message, default='N', boolean=True)
if kb.storeHashesChoice:
if items and kb.storeHashesChoice:
handle, filename = tempfile.mkstemp(prefix=MKSTEMP_PREFIX.HASHES, suffix=".txt")
os.close(handle)