]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Check correct return value from efi_pxe_find()
authorMichael Brown <mcb30@ipxe.org>
Sat, 29 Mar 2025 22:03:32 +0000 (22:03 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 29 Mar 2025 22:03:32 +0000 (22:03 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_pxe.c

index 843ebb5e741334a87eeee792dbc1aa729d424359..732ccdcdfb356ab0219e374fa95f7696f0a85e31 100644 (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;