Page MenuHomeFreeBSD

D58068.1795153713.diff
No OneTemporary

Authored By
Unknown
Size
712 B
Referenced Files
None
Subscribers
None

D58068.1795153713.diff

diff --git a/stand/efi/loader/memdisk.c b/stand/efi/loader/memdisk.c
--- a/stand/efi/loader/memdisk.c
+++ b/stand/efi/loader/memdisk.c
@@ -50,11 +50,15 @@
dl_state *ctx = Context;
decomp_state *dctx = ctx->dctx;
+ if (FileOffset == 0 && BufferLength == 0) {
+ printf("Staritng the download\n");
+ return (EFI_SUCCESS);
+ }
+
/*
- * Make a note of the size when we're hinted about it. But once
- * we start the download, ignore the hints.
+ * Make a note of the size when we're hinted about it.
*/
- if (ctx->size == 0 && BufferLength == 0) {
+ if (BufferLength == 0) {
printf("We know we will download %llu bytes\n", ULL(FileOffset));
ctx->size = FileOffset;
ctx->status = EFI_SUCCESS;

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 20, 5:48 AM (3 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41861254
Default Alt Text
D58068.1795153713.diff (712 B)

Event Timeline