From: Andre Date: Sun, 4 Jun 2006 19:52:00 +0000 (+0200) Subject: filter_chain: Don't return eof too early X-Git-Tag: v0.2.14~84 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=73a1a1396dc46c4534548b78f44b8125a146444d;p=paraslash.git filter_chain: Don't return eof too early The current code may miss to transform the remaining buffer if the receiver has already deactivated its task. Check for the number of loaded bytes in the input buffer of the filter chain and return eof only if nothing is loaded. --- diff --git a/filter_chain.c b/filter_chain.c index 4114ca77..2d82a22c 100644 --- a/filter_chain.c +++ b/filter_chain.c @@ -124,7 +124,7 @@ void filter_pre_select(__a_unused struct sched *s, struct task *t) t->ret = -E_FC_EOF; if (fc->output_eof && *fc->output_eof) goto err_out; - if (fc->input_eof && *fc->input_eof) + if (fc->input_eof && *fc->input_eof && !*fc->in_loaded) goto err_out; again: ib = fc->inbuf;