aboutsummaryrefslogtreecommitdiffstats
path: root/g10/openfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/openfile.c')
-rw-r--r--g10/openfile.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/g10/openfile.c b/g10/openfile.c
index 34be71d62..81e5d2d43 100644
--- a/g10/openfile.c
+++ b/g10/openfile.c
@@ -264,7 +264,7 @@ open_outfile( const char *iname, int mode, IOBUF *a )
* Return NULL if such a file is not available.
*/
IOBUF
-open_sigfile( const char *iname )
+open_sigfile( const char *iname, progress_filter_context_t *pfx )
{
IOBUF a = NULL;
size_t len;
@@ -280,7 +280,10 @@ open_sigfile( const char *iname )
a = iobuf_open( buf );
if( a && opt.verbose )
log_info(_("assuming signed data in `%s'\n"), buf );
- m_free(buf);
+ if (a && pfx)
+ handle_progress (pfx, a, buf);
+ else
+ m_free(buf);
}
}
return a;