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 0abff5d5e..b1fd98ea9 100644
--- a/g10/openfile.c
+++ b/g10/openfile.c
@@ -266,7 +266,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;
@@ -282,7 +282,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;