From 9a1c4ad1bab7d61958081b6e066c80ec0a4b798b Mon Sep 17 00:00:00 2001 From: Jorge Arellano Cid Date: Wed, 26 Dec 2012 12:06:05 -0300 Subject: Fixed a bug in dpip when dillo aborts a running dpi connection http://lists.auriga.wearlab.de/pipermail/dillo-dev/2012-December/009668.html --- dpip/dpip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dpip') 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); } } -- cgit v1.2.3