aboutsummaryrefslogtreecommitdiffstats
path: root/pxelinux.asm
diff options
context:
space:
mode:
Diffstat (limited to 'pxelinux.asm')
-rw-r--r--pxelinux.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/pxelinux.asm b/pxelinux.asm
index 253aa0f1..3e50245f 100644
--- a/pxelinux.asm
+++ b/pxelinux.asm
@@ -1078,8 +1078,10 @@ memory_scan_for_pxenv_struct:
; side and send a courtesy ERROR packet to the server.
;
close_file:
+ and si,si
+ jz .closed
mov word [si],0 ; Not in use
- ret
+.closed: ret
;
; searchdir: