From c374a7d3f4bdd9764f6d38339d76459eaac98f60 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Dec 2009 16:23:31 +0100 Subject: filter/chain: return NULL if a filter() method has failed Don't close child filters in the filter() method. --- src/filter/chain_filter_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/filter/chain_filter_plugin.c b/src/filter/chain_filter_plugin.c index 48100bc4b..edfa70f35 100644 --- a/src/filter/chain_filter_plugin.c +++ b/src/filter/chain_filter_plugin.c @@ -143,7 +143,7 @@ chain_filter_filter(struct filter *_filter, into the current one */ src = filter_filter(filter, src, src_size, &src_size, error_r); if (src == NULL) - chain_close_until(chain, filter); + return NULL; } /* return the output of the last filter */ -- cgit v1.2.3