Skip to content

Commit

Permalink
Comment from Dennis
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetrich committed Jan 23, 2023
1 parent ea9764b commit 2540279
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,11 @@ load_certs(EFI_HANDLE image_handle)
if (efi_status == EFI_BUFFER_TOO_SMALL) {
if (buffersize != old) {
buffer = ReallocatePool(buffer, old, buffersize);
if (buffer == NULL) {
perror(L"Failed to read directory %s - %r\n",
PathName, EFI_OUT_OF_RESOURCES);
goto done;
}
continue;
}
perror(L"Failed to read directory %s - buggy firmware\n",
Expand Down

0 comments on commit 2540279

Please sign in to comment.