aboutsummaryrefslogtreecommitdiff
path: root/dpip
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2012-12-26 12:06:05 -0300
committerJorge Arellano Cid <jcid@dillo.org>2012-12-26 12:06:05 -0300
commit9a1c4ad1bab7d61958081b6e066c80ec0a4b798b (patch)
treeec63f3db9ec9dc1a547838f22aeead5cb6b6d36f /dpip
parentb3fe28cd46ffe481e455c23795a311112de57b1a (diff)
Fixed a bug in dpip when dillo aborts a running dpi connection
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2012-December/009668.html
Diffstat (limited to 'dpip')
-rw-r--r--dpip/dpip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dpip/dpip.c b/dpip/dpip.c
index 170e4a88..dd97ec4a 100644
--- a/dpip/dpip.c
+++ b/dpip/dpip.c
@@ -451,8 +451,9 @@ char *a_Dpip_dsh_read_token(Dsh *dsh, int blocking)
}
} else if (dsh->mode & DPIP_RAW) {
- /* Wait for data when the buffer is empty and there's no EOF yet */
- while (dsh->rdbuf->len == 0 && dsh->status != DPIP_EOF)
+ /* Wait for data when the buffer is empty and there's no ERR/EOF */
+ while (dsh->rdbuf->len == 0 &&
+ dsh->status != DPIP_ERROR && dsh->status != DPIP_EOF)
Dpip_dsh_read(dsh, 1);
}
}