summaryrefslogtreecommitdiff
path: root/uclient.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-07 23:21:52 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-05-07 23:21:52 +0200
commit9ceca0a12166cefdf07aedc3c187fdd2f72fdec8 (patch)
tree0832be27b9011695a6d610b610eb047b2e3596e3 /uclient.c
parent3a61c3f4a8820def50e7fbe68e31a07648102eca (diff)
downloaduclient-9ceca0a12166cefdf07aedc3c187fdd2f72fdec8.tar.gz
fetch: indicate an error if the connection was terminated prematurely
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient.c')
-rw-r--r--uclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/uclient.c b/uclient.c
index fb45069..ab2d5b6 100644
--- a/uclient.c
+++ b/uclient.c
@@ -267,6 +267,7 @@ void __hidden uclient_backend_set_eof(struct uclient *cl)
void __hidden uclient_backend_reset_state(struct uclient *cl)
{
+ cl->data_eof = false;
cl->eof = false;
cl->error_code = 0;
uloop_timeout_cancel(&cl->timeout);