X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SecurityPkg%2FUserIdentification%2FUsbCredentialProviderDxe%2FUsbCredentialProvider.c;h=2b79354fbd9805f9b3e5925100b04ec7d6e245b1;hp=6c22bfb2bb2922be2c4ac33b14a7cc15c6644c46;hb=ae4cb94fa6170b5c4b02d1ab3d042a2452c18394;hpb=32e8520919a2babda4ecabd87c49fad54820f0f3 diff --git a/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c b/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c index 6c22bfb2bb..2b79354fbd 100644 --- a/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c +++ b/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProvider.c @@ -1,7 +1,7 @@ /** @file Usb Credential Provider driver implemenetation. -Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -1037,25 +1037,10 @@ CredentialUser ( } } } - FreePool (UserInfo); - - // - // The read token mismatch with the User's Token. - // Only check token. - // - for (Index = 0; Index < mUsbTable->Count; Index++) { - UserToken = mUsbTable->UserInfo[Index].Token; - if (CompareMem (UserToken, ReadToken, HASHED_CREDENTIAL_LEN) == 0) { - // - // The read token matches with the one in UsbTable. - // - UserId = (UINT8 *) &mUsbTable->UserInfo[Index].UserId; - CopyMem (Identifier, UserId, sizeof (EFI_USER_INFO_IDENTIFIER)); - return EFI_SUCCESS; - } - } - - return EFI_NOT_FOUND; + + FreePool (UserInfo); + + return EFI_NOT_READY; }