aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index 7ed4372a2..9958a8138 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -1649,7 +1649,7 @@ main ( int argc, char **argv)
case aVerify:
{
FILE *fp = NULL;
- FILE *auditfp = NULL;
+ estream_t auditfp = NULL;
set_binary (stdin);
if (argc == 2 && opt.outfile)
@@ -1661,7 +1661,7 @@ main ( int argc, char **argv)
{
audit_release (ctrl.audit);
ctrl.audit = audit_new ();
- auditfp = open_fwrite (auditlog);
+ auditfp = open_es_fwrite (auditlog);
}
if (!argc)
@@ -1682,8 +1682,7 @@ main ( int argc, char **argv)
if (fp && fp != stdout)
fclose (fp);
- if (auditfp && auditfp != stdout)
- fclose (auditfp);
+ es_fclose (auditfp);
}
break;