aboutsummaryrefslogtreecommitdiffstats
path: root/g10/verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/verify.c')
-rw-r--r--g10/verify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/verify.c b/g10/verify.c
index 253a5920b..4dab20717 100644
--- a/g10/verify.c
+++ b/g10/verify.c
@@ -91,7 +91,7 @@ verify_signatures( int nfiles, char **files )
{
iobuf_close (fp);
fp = NULL;
- errno = EPERM;
+ gpg_err_set_errno (EPERM);
}
if( !fp ) {
rc = gpg_error_from_syserror ();
@@ -154,7 +154,7 @@ verify_one_file( const char *name )
{
iobuf_close (fp);
fp = NULL;
- errno = EPERM;
+ gpg_err_set_errno (EPERM);
}
if( !fp ) {
rc = gpg_error_from_syserror ();