From d37d6d681061fdefc2a909b5975b40b604a27c62 Mon Sep 17 00:00:00 2001 From: kavsrf Date: Wed, 4 Jan 2017 01:19:02 +0300 Subject: debug code cleanup --- DcsInt/DcsInt.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'DcsInt') diff --git a/DcsInt/DcsInt.c b/DcsInt/DcsInt.c index 672997f..aaeaafc 100644 --- a/DcsInt/DcsInt.c +++ b/DcsInt/DcsInt.c @@ -628,7 +628,7 @@ SecRegionTryDecrypt() { int vcres = 1; EFI_STATUS res = EFI_SUCCESS; - + int retry = gAuthRetry; PlatformGetID(SecRegionHandle, &gPlatformKeyFile, &gPlatformKeyFileSize); do { @@ -650,8 +650,8 @@ SecRegionTryDecrypt() } else { ERR_PRINT(L"%a", gAuthErrorMsg); } - gAuthRetry--; - } while (vcres != 0 && gAuthRetry > 0); + retry--; + } while (vcres != 0 && retry > 0); if (vcres != 0) { return EFI_CRC_ERROR; } @@ -935,6 +935,10 @@ VirtualNotifyEvent( if (SecRegionData != NULL) { MEM_BURN(SecRegionData, SecRegionSize); } + + if (gAutoPassword != NULL) { + MEM_BURN(gAutoPassword, MAX_PASSWORD); + } } ////////////////////////////////////////////////////////////////////////// @@ -987,7 +991,6 @@ UefiMain( } } if (!devFound) return OnExit(gOnExitNotFound, OnExitAuthNotFound, EFI_NOT_FOUND); - KeyWait(L"%2d \r", 12, 0, 0); } // Try to find by OS partition GUID -- cgit v1.2.3