Fix wng_open error handling.
[paraslash.git] / filter_chain.c
index db0a4c0..4114ca7 100644 (file)
@@ -124,6 +124,8 @@ 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)
+               goto err_out;
 again:
        ib = fc->inbuf;
        loaded = fc->in_loaded;