filter/chain: return NULL if a filter() method has failed

Don't close child filters in the filter() method.
This commit is contained in:
Max Kellermann 2009-12-25 16:23:31 +01:00
parent 3679d5bd7a
commit c374a7d3f4

View File

@ -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 */