projects
/
grub.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a5b301
)
http: reset EOF indication in http_seek
author
Stefan Fritsch
<sf@sfritsch.de>
Sat, 30 Apr 2016 06:10:12 +0000
(09:10 +0300)
committer
Andrei 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
patch
|
blob
|
history
diff --git
a/grub-core/net/http.c
b/grub-core/net/http.c
index
a7c5101
..
5aa4ad3
100644
(file)
--- a/
grub-core/net/http.c
+++ b/
grub-core/net/http.c
@@
-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));