summaryrefslogtreecommitdiff
path: root/proxy_network.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy_network.c')
-rw-r--r--proxy_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy_network.c b/proxy_network.c
index 71c1a0c..3983ec5 100644
--- a/proxy_network.c
+++ b/proxy_network.c
@@ -1080,7 +1080,7 @@ static int proxy_backend_drive_machine(mcp_backend_t *be) {
memcpy(r->buf+r->bread, be->rbuf, tocopy);
r->bread += tocopy;
- if (r->bread >= r->resp.vlen) {
+ if (r->bread >= r->blen) {
// all done copying data.
if (r->resp.type == MCMC_RESP_GET) {
be->state = mcp_backend_read_end;