[efi] Check correct return value from efi_pxe_find()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-03-29 22:03:32 +00:00
parent 4bcaa3d380
commit 18dbd05ed5

View File

@@ -1679,7 +1679,7 @@ void efi_pxe_uninstall ( EFI_HANDLE handle ) {
/* Locate PXE base code */
pxe = efi_pxe_find ( handle );
if ( ! handle ) {
if ( ! pxe ) {
DBG ( "PXE could not find base code for %s\n",
efi_handle_name ( handle ) );
return;