Skip to content

Commit 3d1ab2b

Browse files
committed
minor bug fixes
minor bug fixes, e.g. was allowing blank password, and was not tolower'ing the last character
1 parent 80734d8 commit 3d1ab2b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

PassFiltEx.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ __declspec(dllexport) BOOL CALLBACK PasswordFilter(_In_ PUNICODE_STRING AccountN
498498

499499
if (Password->Length > 0)
500500
{
501-
for (unsigned int Counter = 0; Counter < wcslen(PasswordCopy) - 1; Counter++)
501+
for (unsigned int Counter = 0; Counter < wcslen(PasswordCopy); Counter++)
502502
{
503503
PasswordCopy[Counter] = towlower(PasswordCopy[Counter]);
504504
}
@@ -507,6 +507,8 @@ __declspec(dllexport) BOOL CALLBACK PasswordFilter(_In_ PUNICODE_STRING AccountN
507507
{
508508
EventWriteStringW2(L"[%s:%s@%d] Empty password! Cannot continue.", __FILENAMEW__, __FUNCTIONW__, __LINE__);
509509

510+
PasswordIsOK = FALSE;
511+
510512
goto End;
511513
}
512514

PassFiltEx.rc

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)