aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mdfilter.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/mdfilter.c')
-rw-r--r--g10/mdfilter.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/mdfilter.c b/g10/mdfilter.c
index 1d26e20ba..2cdbd326d 100644
--- a/g10/mdfilter.c
+++ b/g10/mdfilter.c
@@ -53,8 +53,11 @@ md_filter( void *opaque, int control,
buf[i] = c;
}
- if( i )
+ if( i ) {
md_write(mfx->md, buf, i );
+ if( mfx->md2 )
+ md_write(mfx->md2, buf, i );
+ }
else
rc = -1; /* eof */
*ret_len = i;
@@ -69,7 +72,9 @@ void
free_md_filter_context( md_filter_context_t *mfx )
{
md_close(mfx->md);
+ md_close(mfx->md2);
mfx->md = NULL;
+ mfx->md2 = NULL;
mfx->maxbuf_size = 0;
}