summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-11-01 16:03:24 -0400
committerMatthew Garrett <mjg@redhat.com>2012-11-01 16:03:24 -0400
commite4d55afe6a27f2f149f9267d3c43bb636ace9a5a (patch)
treee18bdb245ba84eef837d335835629f085cfc7f20
parent064c0eed5f0d1acc5b82a360b9a8f77fedbdeae4 (diff)
downloadefi-boot-shim-e4d55afe6a27f2f149f9267d3c43bb636ace9a5a.tar.gz
efi-boot-shim-e4d55afe6a27f2f149f9267d3c43bb636ace9a5a.zip
Don't fail if there's no network devices
findNetboot() would continue blindly even if no PXE-capable devices were found. Fix that.
-rw-r--r--netboot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/netboot.c b/netboot.c
index cc43b729..90fb9cba 100644
--- a/netboot.c
+++ b/netboot.c
@@ -106,6 +106,11 @@ try_again:
goto try_again;
}
+ if (status == EFI_NOT_FOUND) {
+ FreePool(buffer);
+ return FALSE;
+ }
+
/*
* We have a list of pxe supporting protocols, lets see if any are
* active