http: reset EOF indication in http_seek
authorStefan Fritsch <sf@sfritsch.de>
Sat, 30 Apr 2016 06:10:12 +0000 (09:10 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 30 Apr 2016 06:13:34 +0000 (09:13 +0300)
Otherwise next read will stop polling too early due to stale EOF
indicator, returning incomplete data to caller.

grub-core/net/http.c

index a7c5101..5aa4ad3 100644 (file)
@@ -449,6 +449,7 @@ http_seek (struct grub_file *file, grub_off_t off)
     }
 
   file->device->net->stall = 0;
+  file->device->net->eof = 0;
   file->device->net->offset = off;
 
   data = grub_zalloc (sizeof (*data));