From a97208d2b3ad74535714ae0f1a4a940f2a0fcc06 Mon Sep 17 00:00:00 2001 From: Markus Jung Date: Wed, 5 Nov 2014 20:20:41 +0100 Subject: [PATCH] savebuff: Handle empty passwords identical setpass did not check for an empty argument. Use the same fallback password as OnLoad() --- modules/savebuff.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index 67ae11d4..2652713a 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -215,6 +215,9 @@ public: { CString sArgs = sCmdLine.Token(1, true); + if(sArgs.empty()) + sArgs = CRYPT_LAME_PASS; + PutModule("Password set to [" + sArgs + "]"); m_sPassword = CBlowfish::MD5(sArgs); }