Skip to content

Commit

Permalink
Fix the issue that the gBS->LoadImage pointer was empty.
Browse files Browse the repository at this point in the history
The interface shouldn't be replaced at the shim_fini
 stage When the vendor certificate doesn't exist.

Signed-off-by: jinlun <[email protected]>
  • Loading branch information
15058718379 authored and vathpela committed Jan 15, 2025
1 parent 314aecf commit ac85ba4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -1744,11 +1744,12 @@ shim_fini(void)
uninstall_shim_protocols();

if (secure_mode()) {

/*
* Remove our hooks from system services.
*/
unhook_system_services();
if (vendor_authorized_size || vendor_deauthorized_size) {
/*
* Remove our hooks from system services.
*/
unhook_system_services();
}
}

unhook_exit();
Expand Down

0 comments on commit ac85ba4

Please sign in to comment.