From 8c5d69dd4c85f1664bb970b681091903dbbe5a4d Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Mon, 30 Sep 2024 13:32:57 +0200 Subject: [PATCH] 1.14.10 --- Sandboxie/core/drv/verify.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Sandboxie/core/drv/verify.c b/Sandboxie/core/drv/verify.c index b1d871e2..33cbec48 100644 --- a/Sandboxie/core/drv/verify.c +++ b/Sandboxie/core/drv/verify.c @@ -676,6 +676,8 @@ _FX NTSTATUS KphValidateCertificate() // Note: when parsing we may change the value of value, by adding \0's, hence we do all that after the hashing // + if(CertDbg) DbgPrint("Cert Value: %S: %S\n", name, value); + if (_wcsicmp(L"DATE", name) == 0) { if (cert_date.QuadPart != 0) { status = STATUS_BAD_FUNCTION_TABLE; @@ -709,7 +711,7 @@ _FX NTSTATUS KphValidateCertificate() } type = Mem_AllocString(Driver_Pool, value); } - else if (_wcsicmp(L"LEVEL", name)) { + else if (_wcsicmp(L"LEVEL", name) == 0) { if (level != NULL) { status = STATUS_BAD_FUNCTION_TABLE; goto CleanupExit; @@ -750,10 +752,6 @@ _FX NTSTATUS KphValidateCertificate() next: status = Conf_Read_Line(stream, line, &line_num); } - - - if(!NT_SUCCESS(status)) - goto CleanupExit; if(!NT_SUCCESS(status = MyFinishHash(&hashObj, &hash, &hashSize))) goto CleanupExit;