aboutsummaryrefslogtreecommitdiffstats
path: root/g10/hkp.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/hkp.c')
-rw-r--r--g10/hkp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/g10/hkp.c b/g10/hkp.c
index 712fb6f51..7950cc54b 100644
--- a/g10/hkp.c
+++ b/g10/hkp.c
@@ -102,7 +102,12 @@ hkp_import( STRLIST users )
log_info(_("%s: not a valid key ID\n"), users->d );
continue;
}
- hkp_ask_import( kid );
+ /* because the function may use log_info in some situations, the
+ * errorcounter ist not increaed and the program will return
+ * with success - which is not good when this function is used.
+ */
+ if( hkp_ask_import( kid ) )
+ log_inc_errorcount();
}
return 0;
#endif